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

Determining Dimension Lintype - Dimltype inside DimStyleTableRecord

1 REPLY 1
Reply
Message 1 of 2
HolgerR
340 Views, 1 Reply

Determining Dimension Lintype - Dimltype inside DimStyleTableRecord

Hi everybody,

I'm currently migrating a tool to check our dwg files regarding to our internal CAD standards from ACA2012 to ACA2014.

As part of this procedere I'm checking the linetype of a Dimension Style. Since ACA2008 I do this by comparing the
DimStyleTableRecord.Dimltype.OldId entry with the ObjectId's from the linetypes. Unfurtunatelly this wan't be work in ACA2014.
The whole Dimltype entry is empty, even like the Dimltex1 & 2. My VS2010 list a warning like :'Public ReadOnly Property OldId As Long' is obsolete: 'Use System::IntPtr OldIdPtr' but even OldIdPtr is 0.

Is there a other way to get the linetype of a dimensionstyle?

best
Holger

1 REPLY 1
Message 2 of 2
absStructural
in reply to: HolgerR

If the Dimltype == ObjectId.Null (i.e. it is empty), it is likely because the line type for that dim style is set to ByBlock. 

 

FYI - if the line type was set to ByLayer - it would have a valid ObjectId that corresponded with a LinetypeTableRecord with the name 'ByLayer'.

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