.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Questions about dimensions?

2 REPLIES 2
SOLVED
Reply
Message 1 of 3
baw6718
632 Views, 2 Replies

Questions about dimensions?

I have set up a dimension style in vb .net, I am having rouble setting the suffix and the linear precision?

 

Here is what I currently have:

 

Dim acDimStyleTbl As DimStyleTable
acDimStyleTbl = acTrans.GetObject(acCurDb.DimStyleTableId, _ OpenMode.ForRead)

 

Dim sDimStyleName As String = "test"

 

Dim acDimStyleTblRec As DimStyleTableRecord = New DimStyleTableRecord()

 

acDimStyleTblRec.Dimscale = 20
acDimStyleTblRec.Dimtxt = 0.18

acDimStyleTblRec.Name = sDimStyleName

acDimStyleTbl.UpgradeOpen()

 

acDimStyleTbl.Add(acDimStyleTblRec)
acTrans.AddNewlyCreatedDBObject(acDimStyleTblRec, True)

 

acCurDb.Dimstyle = acDimStyleTblRec.ObjectId

 

I need to add a single quotation mark for the suffix (  " ie: inches ) and I want the precision at '.00' Any help or advice would be greatly appreciated!

2 REPLIES 2
Message 2 of 3
Balaji_Ram
in reply to: baw6718

Hello,

 

Have you tried using the "DimStyleTableRecord.Dimpost" and "DimStyleTableRecord.Dimdec" properties ?

 

Hope it helps.



Balaji
Developer Technical Services
Autodesk Developer Network

Message 3 of 3
baw6718
in reply to: Balaji_Ram

Thanks, this did work. The only problem I had was triny to get  " to show up for inches and I got that to work by using:

 

DimStyleTableRecord.Dimpost = (Chr(34))

 

 

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost