Is there a way to instantly switch between dimensions and only show them (no recalculation) Thank you!
Use Select Dimensions and the Dim properties panel appears. You can change the (annotation) Style and all dims will change. You will probably need to add an Annotation Style to the document first (in a drawing based on a metric template you only get metric styles by default).
I was noodling around a bit with the dimstyles, can someone with more insight tell me why the last line does not give the wanted effect?
import rhinoscriptsyntax as rs import Rhino allObjs = rs.AllObjects() for obj in allObjs: if rs.ObjectType(obj) == 512: rhObj = rs.coercerhinoobject(obj) rhObj.DimensionStyle.DimensionLengthDisplay = Rhino.DocObjects.DimensionStyle.LengthDisplay.FeetAndInches
Hello - you may want a CommitChanges() on the dimension style - but please start a new thread on the Scriting forum for that.
Well, it is in direct response to the OPs question about an instant switch between dimension units, so I don’t see why it would not fit in here. OP could then just use a new toolbar button to switch to inches and back.
Hi @rgr ,
I think Pascal is simply making the point that if you want help with scripting you will get a better response if you bring your request to the attention of people with an interest in scripting…
Most people can’t keep up with all the posts that appear in Discourse, so we tend to filter on topics.
Thank you all for your help on this.
Are you aware that you can display two different dimension units simultaneously? If you turn on Alternate Units for your dims you get a second unit of your choice in square brackets after the first, e.g.:
@jeremy5 whoop this is a game changer.