I’m using rhinocommon to add some dimension to the document. I have 4 questions relating to dimension style etc.
-
I would like to change the scale of a dimension object (arrows, text etc. all should grow). I’m not seeing an option for this. I do see something for text height, but it doesn’t seem to work for me when I use it as follows:
MyDimension.TextHeight = 50
doc.Objects.AddDimension(MyDimension)
also tried this:
doc.DimStyles.CurrentDimensionStyle.TextHeight = 30
doc.DimStyles.CurrentDimensionStyle.CommitChanges() -
I would like to change a line type to something other than continuous. I’ve tried the code below but it doesn’t seem to work.
Dim attributes = New Rhino.DocObjects.ObjectAttributes()
attributes.LinetypeSource = DocObjects.ObjectLinetypeSource.LinetypeFromObject
attributes.LinetypeIndex = 4
doc.Objects.AddLine(pt0, pt1, attributes) -
I would like a locked object to not be the generic grey locked color. I know I could change the generic locked color, but what I need is to change it for specific objects, but not all. Is there a way to do this short of putting it on a layer and locking the layer?
-
When using angular dimensions, sometimes the dimension arrows are forced outside the angle, is there a way to force them inside the angle?
Thanks,
Sam