Quantcast
Channel: Scripting - McNeel Forum
Viewing all articles
Browse latest Browse all 5750

Question to Dimstyle

$
0
0

@Robert wrote:

Hello All,

I can ceate a Dim style but how I fit the text not Auto I wand do it insite

this I have:

if (null != dimstyle)
                    {
                        
                        dimstyle.ArrowLength = 18 * scale;
                        dimstyle.TextHeight = 18 * scale;
                        dimstyle.TextGap = 6.8 * scale;
                        dimstyle.ExtensionLineOffset = 0;
                        dimstyle.ExtensionLineExtension = scale;
                        dimstyle.LengthResolution = 0;
                        
                        doc.DimStyles.Modify(dimstyle, dimstyle.Id,false);

                        //RhinoApp.WriteLine(string.Format("Dimstyle \"{0}\" added.", dimstyle_name));
                        doc.DimStyles.SetCurrent(dimstyle.Index, false);
                    }

Robert

Posts: 3

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 5750

Trending Articles