• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    Autodesk ObjectARX

    Reply
    Contributor
    Posts: 11
    Registered: ‎12-11-2008

    Dimension Linetype Name in ObjectARX 2006

    210 Views, 3 Replies
    02-19-2009 02:30 AM
    AcDbDimStyleTableRecord::dimltype is available in ObjectARX 2007 onwards.

    But I have a old code using ObjectARX 2006. One part of it is that we are going to port it for ObjectARX 2010. So there will be no issue.

    But I have just found a bug due to unavailability of the API in 2006.

    My question - Is there any alternative mechanism to get the ID of the line type of the specified dim style of any way to get the name of the line type of a specified dim style directly ?
    Please use plain text.
    Active Contributor ggr
    Active Contributor
    Posts: 47
    Registered: ‎01-27-2004

    Re: Dimension Linetype Name in ObjectARX 2006

    02-19-2009 07:39 AM in reply to: subir.kumar.dutta
    The variable DIMLTYPE contains the name of the linestyle for the current active dimstyle.
    With that name you can look in the linestyle table for the object id.

    Gertwin
    Please use plain text.
    Contributor
    Posts: 11
    Registered: ‎12-11-2008

    Re: Dimension Linetype Name in ObjectARX 2006

    02-20-2009 12:34 AM in reply to: subir.kumar.dutta
    Actually I need the name of dimension linetype of all the available dim style in the current drawing and not only the current dim style.

    One possibility is to set current to each of the dim style in aloop and get its line type.

    Is it the only possible way ?
    Please use plain text.
    Active Contributor ggr
    Active Contributor
    Posts: 47
    Registered: ‎01-27-2004

    Re: Dimension Linetype Name in ObjectARX 2006

    02-20-2009 01:17 AM in reply to: subir.kumar.dutta
    I know, not very elegant.
    Since the linetype property is not available in the arx and activex api it is the only way i can think of.
    Please use plain text.