Windows 8 Support

  • Subscribe to our RSS feed.
  • Twitter
  • StumbleUpon
  • Reddit
  • Facebook
  • Digg

Monday, 24 September 2012

Dynamic Viewport Scale Bar

Posted on 10:00 by Unknown
While on technical support at Ideate, we often receive requests from our customers for items or features that aren’t currently part of AutoCAD and Civil 3D. One recent request was for a Viewport Scale Bar that dynamically updates its values when a user changes the Viewport scale in their drawing.

Although this can be done by linking blocks with fields to Sheet Set Views, not all users use sheet sets or take the time to set them up with a linked scale. In this case, we were able to create a custom made viewport scale bar linked to the Viewport itself without the use of Sheet Sets. 

The scale bar we were looking for is fairly standard. It is divided into three 1-inch sections, each linked to a multiple of the viewport scale. To the right of the 0 value, a whole number representing the viewport scale and a double value of the scale are shown. To the left, half and whole value increments are displayed.
*image not to scale

This Scale bar is dynamically linked to the Viewport through the use of Fields.  When a Viewport Scale is specified (1:10 in the example) and the drawing is regenerated, the SCALE: item is updated along with the values for 10, 20, -5 and -10. Although it seems easy enough, these are not standard Field options and require some manipulation of the Field codes. 

In each case, a Field was inserted for the value, with the Field Name and Field Category set to Object. The Viewport was selected as the Object Type and Custom Scale was set as the Property.

In the Format section, the 1:# and 1”=#’ options were the starting points for the modified field codes. 

To get the whole number value, I started with the code for 1:#
%<\AcObjProp Object(%<\_ObjId 8796083731456>%).CustomScale \f “1:%lu2%ct1%qf2816”>%
From that, removing the highlighted 1: item produces just the # value in the field (1:10 becomes 10). 

The revised code looks like this:
%<\AcObjProp Object(%<\_ObjId 8796083731456>%).CustomScale \f “%lu2%ct1%qf2816”>%
For the 0.5x and 2x multiple values, the 1”=#’ code was the starting point
%<\AcObjProp.16.2 Object(%<\_ObjId 8796083731456>%).CustomScale \f “1\” = %lu2%zs12%ct9[0.0833333333333333]’”>%
Since this code was created to apply a multiplier of 0.0833333333333333 to the original scale factor, all I needed to do was change that to 0.5 and 2 respectively. Once that was done, removing the 1/”= portion of the code left me with only the multiplied values. The “-“ was also added to the codes on the left side of the 0 value (-10 is the code from above with a “-“ added to it). 

The resulting code for -0.5x and 2x values are
%<\AcObjProp.16.2 Object(%<\_ObjId 8796083731456>%).CustomScale \f “-%lu2%zs12%ct9[0.5]’”>%
%<\AcObjProp.16.2 Object(%<\_ObjId 8796083731456>%).CustomScale \f “%lu2%zs12%ct9[2]’”>%
The result is a dynamic Viewport Scale bar that updates (after REGENALL) if a user changes the Viewport scale.

That said, it is not without its faults. Here are some tips and items to consider when using this custom scale bar.
  1. Because Fields are linked to specific objects in a file, the Dynamic Scale bar cannot be copied and pasted directly into another drawing. BOTH items (Scale bar and Viewport) need to be copied in order for it to work in another file.
  2. The modified code used to generate the required values is NOT supported since it is a modification to background coding intended for use with Object Fields. Use of these objects is at your own risk.
  3. Updating of the values is not triggered automatically. Users are required to REGENALL for the numbers to update after a viewport scale is changed.  Always remember to verify the scale with the Scale Bar regardless of dynamic functionality.
  4. The scale bar in our sample file was set up for engineering scales (i.e. 1:10, 1:20 etc.). It will also convert fractional (Architectural) scales to this format. A ¼”=1’-0” scale would display as 1:48 using this Scale Bar.
  5. Viewports and Scale Bars can be saved to your drawing template (.DWT) file so that they automatically appear in new files. The size of the viewport can be adjusted as needed after the drawing is created.
  6. Layouts can be created with pre-defined paper sizes (Page Setups) that include these Viewports and Scale Bars. Use the Design Center to copy these into existing drawings or to add them to a template (.DWT) file.
  7. Do Not convert the Scale Bar into a Block. The Scale Bar needs to remain un-blocked in order for the Fields to function properly after it is copied.
If you want to check this out for yourself, here's a drawing file (.DWG) that includes a viewport and scale bar. Per item 6 above, you can use the Design Center to copy one of these layouts into your own drawing files and adjust the Viewport as needed once they’re in the file.



Matt Miyamoto, P.E.
Ideate AEC Application Specialist

Matt is a licensed Civil Engineer in the state of Hawaii. Matt obtained a BS in Mechanical Engineering from the University of Hawaii at Manoa, and has 7 years of private sector design experience which he applies in his role as an application specialist with Ideate, Inc. His project experience includes residential and commercial site development, private and public sewer, water and drainage systems, harbors improvements, and roadway improvements. While in Hawaii, Matt was involved in multidisciplinary projects for City and County agencies, State Departments, the Army COE and private developers. @MattM_PE

Get it. Know it. Use it.
Email ThisBlogThis!Share to XShare to FacebookShare to Pinterest
Posted in AutoCAD, AutoCAD Civil 3D, Civil 3D, Ideate, Ideate Inc., matt miyamoto | No comments
Newer Post Older Post Home

0 comments:

Post a Comment

Subscribe to: Post Comments (Atom)

Popular Posts

  • Civil 3D 2013: 2D and 3D Polyline Conversion
    While working on a grading I needed to change grades along a path that had been defined as a 2D polyline. Well, it is a fact that a 2D polyl...
  • Ideate, Inc. Welcomes Eugene A. O’Day, IX, to Tech Expert Team
    San Francisco, CA, 7/31/2013 – Ideate, Inc., an Autodesk Gold Value Added Reseller, today announced that Eugene A. O’Day, IX, has joined I...
  • Autodesk InfraWorks Tips and Tricks: JavaScript Support
    Here at Ideate, we are always on the lookout for helpful tips and tricks that might be of value to our customers. While attending Autodesk T...
  • Civil 3D Technology Preview – Corridor Solids for Civil 3D 2012
    How do you import a Civil 3D corridor into Revit or Navisworks? I was asked this question a couple of months ago while importing a Civil 3D ...
  • Civil 3D Subscription Download – Volumes Dashboard Extension for AutoCAD Civil 3D 2012
    Have you always wondered what happens to your Civil 3D subscription dollars? Well, Autodesk keeps on adding value for subscription customers...
  • Ideate, Inc. Publishes Jasmax and BVN Use Case Study in Success
    SAN FRANCISCO, California – 09/11/2012 - Ideate, Inc., a leading Autodesk® Authorized Developer and Autodesk solutions provider offering qua...
  • New Room Calculation Point Functionality in Revit 2014
    In coordination with the Ideate, Inc. YouTube video on Autodesk Revit 2014 - Room Calculation Point, this post describes how the Revit 2014...
  • Rebar Documentation and Concrete Modeling Enhancements in Revit Structure 2014
    Thank you for visiting Ideate’s blog to check out the new features added to Autodesk Revit Structure 2014. My name is Shruti Harve and I wor...
  • Import Street Centerline from GIS Data Straight to a 3D Model
    So you import GIS data into AutoCAD or Civil 3D to get AutoCAD lines and use it for design and analysis. What if you could import the .SHP f...
  • Exploded Axonometric Views in Revit 2014: No Problem!
    Thank you for visiting Ideate’s blog to check out the new features added to Autodesk Revit 2014. My name is Shruti Harve and I work as a Sen...

Categories

  • .NET 4.5
  • .NWC file
  • #ADSK2012
  • #ADSK2013
  • #adsk2014
  • #AU2011
  • #AU2012
  • #AU2013
  • 2014
  • 2014 Migration
  • 360
  • 360 account
  • 360 online options
  • 3D
  • 3D Axon
  • 3d design
  • 3d Object
  • 3d Scanning
  • 3D View
  • 3ds Max
  • 3ds Max 2014
  • 3ds Max Design
  • ACI
  • adoption
  • ADSK2014
  • AEC
  • AEC Application Specialist
  • AECbytes
  • AIA
  • AIA CEU
  • AIA LU
  • AIM
  • Air Terminal Duct Enhancement
  • Airborne
  • Alternate Dimensions
  • Annotation Scale Unit Scale
  • Apple Boot Camp
  • Architectural Project Manager
  • ASHRAE
  • Assembly Code
  • Asset Browser
  • assign pay items
  • ATC
  • AU
  • AU 2012
  • Aurecon
  • Authorized Training Center
  • AutoCAD
  • AutoCAD 2012
  • AutoCAD 2013
  • AutoCAD 2014
  • AutoCAD Architecture
  • AutoCAD Civil 3D
  • AutoCAD Civil 3D 2012
  • AutoCAD Civil 3D 2013
  • AutoCAD Civil 3D 2014
  • AutoCAD for Mac
  • AutoCAD for Mac 2013
  • AutoCAD LT
  • AutoCAD Map 3D
  • AutoCAD Mechanical
  • AutoCAD MEP
  • AutoCAD MEP 2012
  • AutoCAD MEP 2013
  • AutoCAD MEP 2014
  • AutoCAD Plant 3D
  • AutoCAD WS
  • Autodesk
  • Autodesk 2014
  • Autodesk 360
  • Autodesk 360 account
  • Autodesk 360 Settings
  • Autodesk 3ds Max Design
  • Autodesk 3ds Max Design 2013
  • Autodesk Authorized Certification Center
  • autodesk authorized developer
  • Autodesk Authorized Training Center
  • Autodesk Autodesk Authorized Training Center
  • Autodesk Autodesk Revit MEP
  • Autodesk Certification
  • Autodesk Certified Instructor
  • Autodesk Civil Infrastructure Specialized
  • autodesk cloud
  • autodesk community
  • autodesk construction specialization
  • Autodesk Consulting Services Partner
  • autodesk corrupt file
  • Autodesk Design Review
  • Autodesk Design Suites
  • Autodesk Ecotect
  • autodesk exchange apps
  • Autodesk Fabrication Specialization
  • autodesk file crash
  • autodesk forum
  • Autodesk Gallery
  • Autodesk Green Building Studio
  • Autodesk Impression
  • autodesk infrastructure modeler
  • Autodesk Instructor Certification
  • Autodesk Labs
  • Autodesk License Manager
  • Autodesk licensing
  • Autodesk M&E
  • Autodesk Maya
  • Autodesk MEP
  • Autodesk MEP 2014
  • autodesk mep systems specialization
  • autodesk mosaic
  • Autodesk Navisworks
  • Autodesk Navisworks 2012
  • Autodesk Navisworks 2013
  • Autodesk Navisworks 2014
  • Autodesk Navisworks Manage
  • Autodesk Navisworks Simulate
  • Autodesk Partner
  • Autodesk Product Support Specialization
  • Autodesk Quantity Takeoff
  • Autodesk ReCap
  • Autodesk Reseller
  • Autodesk Revit
  • Autodesk Revit 2012
  • Autodesk Revit 2013
  • Autodesk Revit 2014
  • autodesk revit architecture
  • Autodesk Revit Architecture 2012
  • autodesk revit architecture 2013
  • Autodesk Revit Architecture 2014
  • Autodesk Revit MEP
  • Autodesk Revit MEP 2013
  • Autodesk Revit MEP 2014
  • Autodesk Revit Structure 2013
  • Autodesk Revit Structure 2014
  • autodesk roadway design
  • Autodesk Showcase
  • autodesk simulation specialization
  • Autodesk SketchBook Pro
  • Autodesk Software
  • Autodesk software installation
  • autodesk specialization
  • Autodesk Structural Engineering Specialization
  • Autodesk Subscription
  • Autodesk Technical Support
  • autodesk training
  • Autodesk University
  • Autodesk Vault
  • AutoLISP
  • Axis
  • Below Ribbon
  • Bentley
  • Best Practices
  • Beyond the Basics
  • bill johnson
  • BIM
  • BIM 360 Field
  • BIMLink
  • bimlink for revit
  • blame
  • Bob Palioca
  • Bradley Cooley
  • BUGIE
  • Building Design Suite
  • building information modeling
  • Bullit Center
  • business
  • Business Analysis
  • BVN Architecture
  • CAD
  • CAD Files in Revit
  • CAD Files. Eugene O'Day
  • CAD Imports
  • CAD Links
  • CADLearning
  • CADLearning Portal
  • Certified Instructor
  • change
  • Citrix
  • Civil
  • Civil 101
  • Civil 3D
  • Civil 3D 2012
  • Civil 3D 2014
  • Civil 3D Fundamentals
  • civil 3D.
  • clash detective
  • Clinton Maulder
  • Cloud
  • cloud 360
  • CloudOn
  • COBie
  • COBie Guide
  • collaborate
  • Collaboration
  • Command Line
  • Commandline
  • commitment
  • Common Materials
  • Competition
  • Conduit Size
  • consulting
  • continuing education
  • corporate culture
  • corridor solids
  • create pipe table
  • create structure table
  • CSV
  • customer satisfaction
  • Cyclone
  • Data
  • Data References
  • Data Shortcuts
  • data sources
  • David Haynes
  • Derek Wielkopolski
  • Diagrammatic 3D views
  • Differentiator
  • Digital Entertainment
  • Displaced Views
  • Displacement
  • disruptive
  • DOE Solar Decathlon
  • drawing audit
  • Dropbox
  • Duct Pipe Elbow Specific Angle
  • DWF
  • dwg
  • Eagle Point
  • Ecotect
  • Ecotect Analysis
  • Edit Materials
  • Edith Green Wendell Wyatt
  • eLearning
  • Electrical Fundamentals
  • elevation analysis
  • enhanced rebar shapes
  • Environmental Science Associates
  • ESA
  • Eugene O'Day
  • Excel
  • Excel to Revit
  • Exploded Axonometric
  • Exploded Isometric
  • Explorer
  • Export
  • export to DGN
  • export to excel
  • FARO
  • fatal error
  • File Repathing
  • File Support
  • File Type
  • FILEDIA
  • Fitting
  • FUD
  • Gary M. Davis
  • gaurav bagga
  • gis
  • Glynnis Patterson
  • Google Maps
  • Google Sheet
  • Green BIM Basics
  • Green Building Studio
  • Hague Justice Portal
  • highways
  • HMC Architects
  • hsw credits
  • Ideate
  • Ideate BIMLink
  • Ideate BIMLink for Revit 2013
  • Ideate BIMLink for Revit 2014
  • Ideate BIMLink for Revit 2014.1
  • Ideate BIMLink Survey
  • Ideate Consulting
  • Ideate Explorer
  • Ideate Explorer for Revit
  • Ideate Explorer for Revit 2013
  • Ideate Explorer for Revit 2014
  • Ideate Inc.
  • Ideate presents
  • IdeateBIMLink
  • IdeateInc
  • improvement
  • IMSCAD
  • Inc.
  • InfaWorks
  • Infrastructure
  • Infrastructure Design Suite
  • Infrastructure Modeler
  • Infrastructure Modeler 2014
  • InfraWorks
  • InfraWorks 360
  • Infraworks R2
  • Inroads
  • Interior Designers
  • Intersection Design Tool
  • intuition
  • Inventor
  • IPD
  • James Cowan
  • Jasmax
  • Javascript
  • Jeld-Wen Field
  • Jim Cowan
  • Jim Quanci
  • Jobsite Inspections
  • Kasian Architecture
  • kate ming
  • Laser Scan
  • Layer Key Style
  • Layer Standard
  • Lean
  • LEED
  • LEED AP
  • LEED Gold
  • Leica
  • license cascading
  • License Manager
  • LIDAR
  • lionakis
  • Lock
  • Lookup Table
  • LPAS Architecture and Design
  • M&E
  • Mac OS
  • Manage Paths
  • Map 3D
  • Marcel de Jong
  • Mark Schoennagel
  • Material Editor
  • Material Library
  • Materials
  • matt miyamoto
  • Maya
  • Maya LT
  • Measurement
  • Mechanical and Plumbing
  • mentor
  • mep
  • MEP 2014
  • MEP Ideate
  • MEP IDeate
  • Microsoft Windows 8
  • Mobile
  • Mobile Apps
  • Model
  • MotionBuilder
  • Move Objects away
  • Mudbox
  • Multi Rebar Annotation
  • Navisworks
  • Navisworks 2014
  • Navisworks Manage
  • negotiation
  • network
  • network deployments
  • Nicholas M Kramer
  • ObjectARX
  • Objects & Label Styles
  • OS X
  • PAE Consulting Engineers
  • Parallel
  • Parallels
  • PAT files
  • Patterns
  • Perpendicular
  • Phased Based
  • Phillippi Engineering
  • Photometric Lights
  • Pipe Network
  • Planning
  • PMI
  • PMP
  • point cloud
  • Point Clouds
  • POINTCLOUD
  • polyline
  • post-mortem
  • preparation
  • Presentations
  • Pressure Network
  • Pressure Pipe
  • Pressure Pipe Networks
  • Pressure Pipe References
  • Pressure Pipe Shortcuts
  • Product Key
  • project galileo
  • project management
  • Project Management Institute
  • Project Management Professional
  • Project Manager
  • Project Neon
  • project silverstar
  • Properties
  • Property Set Definition
  • Proposals
  • PSD Schedule
  • quantity takeoff
  • Randomization
  • RCP
  • RCS
  • Reality Capture
  • RealWorks
  • Rebar Constraints
  • Rebar documentation
  • Recap
  • Registry
  • Reinforcement Rebar Enhancements
  • Reinforcement Rounding
  • Rendering
  • requirements
  • Review
  • Revit
  • Revit 201
  • Revit 2013
  • Revit 2013.3
  • Revit 2014
  • Revit 2014 Model Performance Technical Note
  • Revit Architecture
  • Revit Architecture 2014
  • Revit Architecture Fundamentals
  • revit building information model
  • Revit elevation
  • Revit error
  • Revit Families
  • revit forum
  • Revit Ideate "Ideate Inc." Parameter Variance Vary Group
  • Revit MEP
  • revit mep 2012
  • Revit MEP 2014
  • Revit Model
  • revit multi-category
  • Revit Railings
  • revit schedule
  • revit schedules
  • Revit Server
  • Revit Server 2013
  • Revit Stairs
  • Revit Structure
  • Revit Structure 2012
  • Revit Structure 2014
  • Revit Technology Conference
  • Revit Tip
  • Revit to Excel
  • Revit tool
  • Revit Training
  • Revit User Group
  • Risk
  • roads
  • Robert Palioca
  • Ron Palma
  • RonPalmaAEC
  • Room Aware Families
  • Room Calculation Point
  • RTC
  • RTC Europe
  • RTCUSA
  • RVT
  • sash kazeminejad
  • Scan Data
  • Scanning
  • Scenarios
  • Scoping
  • scripts
  • Selling
  • Services
  • settings
  • SFRUG
  • shruti harve
  • Signage
  • Site tools
  • SketchBook Designer
  • SketchBook Designer 2013
  • Sketchbook Mobile
  • Sketchbook Mobile Express
  • SketchUp
  • solution
  • Spreadsheet
  • Stair Functionality
  • Stairs and Railings
  • Storm and Sanitary Analysis
  • strategy
  • Structural Analytical Model Improvements
  • Structural Rebar
  • Support
  • surface analysis
  • survey
  • Switch Geometry Order
  • SWOT
  • sync settings
  • syncing settings
  • Systems
  • tech support
  • technology
  • Temporary View Properties
  • thinking
  • Time of Flight
  • Tooltip
  • travel
  • Trillium Creek
  • Trimble
  • USGBC
  • Value
  • Vasari
  • Vault
  • VDC
  • View Properties Temporary
  • Virtualization
  • VM Ware
  • Wayfinding
  • William Johnson
  • Windows
  • Windows 8
  • Windows Server 2012
  • workflows
  • Workset
  • worksharing
  • Workspace
  • Xgen

Blog Archive

  • ►  2013 (204)
    • ►  November (15)
    • ►  October (19)
    • ►  September (14)
    • ►  August (18)
    • ►  July (23)
    • ►  June (14)
    • ►  May (25)
    • ►  April (31)
    • ►  March (15)
    • ►  February (11)
    • ►  January (19)
  • ▼  2012 (204)
    • ►  December (13)
    • ►  November (14)
    • ►  October (19)
    • ▼  September (18)
      • eLearning – Upcoming Classes
      • Ideate, Inc. Director of Consulting David Haynes R...
      • Autodesk Product Keys – Understanding the Relation...
      • Classroom Training – Open Revit Classes
      • Dynamic Viewport Scale Bar
      • eLearning – Upcoming Classes
      • Little Things Making a Difference… New in Civil 3D...
      • Classroom Training – Open Revit Classes
      • Ideate Earns Autodesk Simulation Specialization
      • Ideate BIMLink and Revit MEP Space Type Modification
      • eLearning – Upcoming Classes
      • Revit MEP Tip - Single Column Panel Schedules
      • Classroom Training – Open Classes
      • Ideate, Inc. Publishes Jasmax and BVN Use Case Stu...
      • Life in the Cloud: Autodesk 360 Cloud Services
      • eLearning – Upcoming Classes
      • The “Multi” in Multilayer Subassemblies
      • Classroom Training – Open Classes
    • ►  August (19)
    • ►  July (12)
    • ►  June (17)
    • ►  May (23)
    • ►  April (27)
    • ►  March (19)
    • ►  February (10)
    • ►  January (13)
  • ►  2011 (92)
    • ►  December (10)
    • ►  November (9)
    • ►  October (16)
    • ►  September (13)
    • ►  August (19)
    • ►  July (14)
    • ►  June (11)
Powered by Blogger.

About Me

Unknown
View my complete profile