.NET

Reply
Active Member
baw6718
Posts: 6
Registered: ‎09-25-2012
Message 1 of 3 (307 Views)
Accepted Solution

Questions about dimensions?

307 Views, 2 Replies
10-02-2012 09:44 AM

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!

Hello,

 

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

 

Hope it helps.

ADN Support Specialist
Balaji_Ram
Posts: 749
Registered: ‎03-21-2011
Message 2 of 3 (240 Views)

Re: Questions about dimensions?

10-11-2012 06:48 AM 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

Active Member
baw6718
Posts: 6
Registered: ‎09-25-2012
Message 3 of 3 (223 Views)

Re: Questions about dimensions?

10-11-2012 12:19 PM 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))

 

 

Post to the Community

Have questions about Autodesk products? Ask the community.

New Post
Announcements
Do you have 60 seconds to spare? The Autodesk Community Team is revamping our site ranking system and we want your feedback! Please click here to launch the 5 question survey. As always your input is greatly appreciated.