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

Importing LineTypes from ACADISO.LIN

1 REPLY 1
Reply
Message 1 of 2
Anonymous
507 Views, 1 Reply

Importing LineTypes from ACADISO.LIN

I am creating a LayerTable and LayerTableRecords. In the LayerTableRecord I am only able to set the linetypeid to Continuous for example if the layertablerecord is ltr I can say ltr.LinetypeObjectId = db.ContinuousLinetype (where db is the currently working database). I need to use the linetypes defined in the acadiso.lin, such as DASHDOT. Do I need to recreate them or is there a reference I can call?
1 REPLY 1
Message 2 of 2
Anonymous
in reply to: Anonymous


Dim lt As LinetypeTable =
ta.GetObject(dwg.Database.LinetypeTableId, OpenMode.ForRead)

 

If lt.Has("DashDot") = False
Then
    'upgrade the open for read to
write
    lt.UpgradeOpen()
    'linetype not
found so load from AutoCAD ISO standard file
   
dwg.Database.LoadLineTypeFile("DashDot", "acadiso.lin")
   
'commit adding the linetype
    ta.Commit()
End
If

 

Joe ...


style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
I
am creating a LayerTable and LayerTableRecords. In the LayerTableRecord I am
only able to set the linetypeid to Continuous for example if the
layertablerecord is ltr I can say ltr.LinetypeObjectId = db.ContinuousLinetype
(where db is the currently working database). I need to use the linetypes
defined in the acadiso.lin, such as DASHDOT. Do I need to recreate them or is
there a reference I can call?

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