<?xml version="1.0" encoding="UTF-8"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title><![CDATA[AutoCAD Forums - .NET, ObjectARX & VBA]]></title>
		<link>http://www.cadtutor.net/forum/</link>
		<description>Use this forum to discuss all application interfaces (APIs) other than LISP.</description>
		<language>en</language>
		<lastBuildDate>Tue, 21 May 2013 13:28:23 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.cadtutor.net/forum/images/misc_cadtutor/rss.png</url>
			<title><![CDATA[AutoCAD Forums - .NET, ObjectARX & VBA]]></title>
			<link>http://www.cadtutor.net/forum/</link>
		</image>
		<item>
			<title>VBA object problems</title>
			<link>http://www.cadtutor.net/forum/showthread.php?79382-VBA-object-problems&amp;goto=newpost</link>
			<pubDate>Thu, 16 May 2013 13:43:21 GMT</pubDate>
			<description>We currently have a mixture of AutoCADs in the office. We all had ACAD2011 on XP but there are now 2 machines with ACAD2013 on XP and one ACAD2013 on 64 bit Win7. 
  
I am in the process of changing...</description>
			<content:encoded><![CDATA[<div>We currently have a mixture of AutoCADs in the office. We all had ACAD2011 on XP but there are now 2 machines with ACAD2013 on XP and one ACAD2013 on 64 bit Win7.<br />
 <br />
I am in the process of changing my VBA routines to VB.Net but naturally, the main one is still only working in VBA. And this is where the problem comes. The boss' machine (the 64 bit Win 7) doesn't like the line..<br />
 <br />
<div class="bbcode_container">
	<div class="bbcode_description">Quote:</div>
	<div class="bbcode_quote printable">
		<hr />
		
			Dim PlineObj As AcadLWPolyline
			
		<hr />
	</div>
</div> It says it doesn't know what an AcadLWPolyline is, where my machine is quite happy.<br />
 <br />
Can anybody shed some light on how to coax the newest installation into running my code? The rest of the office are due to move on to ACAD2013/Win7 and it would be nice to get it working before too long. I'm not sure when I will be moved but currently I am probably going to be last.<br />
 <br />
====================<br />
 <br />
the message I get is &quot;Object or library not found&quot;, but the references <i>look</i> the same - he is a long way from me and I keep forgetting by the time I walk from one machine to the other.</div>

 ]]></content:encoded>
			<category domain="http://www.cadtutor.net/forum/forumdisplay.php?69-.NET-ObjectARX-amp-VBA"><![CDATA[.NET, ObjectARX & VBA]]></category>
			<dc:creator>dbroada</dc:creator>
			<guid isPermaLink="true">http://www.cadtutor.net/forum/showthread.php?79382-VBA-object-problems</guid>
		</item>
		<item>
			<title>Recommendation for a c#/vb.net forum</title>
			<link>http://www.cadtutor.net/forum/showthread.php?79345-Recommendation-for-a-c-vb.net-forum&amp;goto=newpost</link>
			<pubDate>Wed, 15 May 2013 02:26:23 GMT</pubDate>
			<description>I was wondering if anyone might recommend a forum where I could ask a few questions about object oriented programming.  Something like CADTutor for .net programming.</description>
			<content:encoded><![CDATA[<div>I was wondering if anyone might recommend a forum where I could ask a few questions about object oriented programming.  Something like CADTutor for .net programming.</div>

 ]]></content:encoded>
			<category domain="http://www.cadtutor.net/forum/forumdisplay.php?69-.NET-ObjectARX-amp-VBA"><![CDATA[.NET, ObjectARX & VBA]]></category>
			<dc:creator>TKall</dc:creator>
			<guid isPermaLink="true">http://www.cadtutor.net/forum/showthread.php?79345-Recommendation-for-a-c-vb.net-forum</guid>
		</item>
		<item>
			<title><![CDATA[Can't remove 'user interaction' part of my code [seeking help]]]></title>
			<link>http://www.cadtutor.net/forum/showthread.php?79343-Can-t-remove-user-interaction-part-of-my-code-seeking-help&amp;goto=newpost</link>
			<pubDate>Tue, 14 May 2013 23:35:42 GMT</pubDate>
			<description>Hi all, 
 
I have got this  (http://through-the-interface.typepad.com/through_the_interface/2006/09/getting_autocad.html)code by KEAN WALMSLEY. 
 
His code will ask user to select a block and then...</description>
			<content:encoded><![CDATA[<div>Hi all,<br />
<br />
I have got <a href="http://through-the-interface.typepad.com/through_the_interface/2006/09/getting_autocad.html" target="_blank">this </a>code by KEAN WALMSLEY.<br />
<br />
His code will ask user to select a block and then list all of selected block's attributes. However, I need to tweak his code a little bit and instead of user interaction, the block has to be selected by its name and through my code.<br />
<br />
Here is his code (with slight changes to suit my purpose):<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Private Sub ListAttributes()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim ed As Editor = Application.DocumentManager.MdiActiveDocument.Editor<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim db As Database = HostApplicationServices.WorkingDatabase<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim tr As Transaction = db.TransactionManager.StartTransaction()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim filList As TypedValue() = New TypedValue(0) {New TypedValue(CInt(DxfCode.Start), &quot;INSERT&quot;)}<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim filter As New SelectionFilter(filList)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim opts As New PromptSelectionOptions()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; opts.MessageForAdding = &quot;Select block references: &quot;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim res As PromptSelectionResult = ed.GetSelection(opts, filter)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; If res.Status &lt;&gt; PromptStatus.OK Then<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Return<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End If<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim selSet As SelectionSet = res.Value<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim idArray As ObjectId() = selSet.GetObjectIds()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For Each blkId As ObjectId In idArray<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim blkRef As BlockReference = DirectCast(tr.GetObject(blkId, OpenMode.ForRead), BlockReference)<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim btr As BlockTableRecord = DirectCast(tr.GetObject(blkRef.BlockTableRecord, OpenMode.ForRead), BlockTableRecord)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ed.WriteMessage(vbLf &amp; &quot;Block: &quot; + btr.Name)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; btr.Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim attCol As AttributeCollection = blkRef.AttributeCollection<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; For Each attId As ObjectId In attCol<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim attRef As AttributeReference = DirectCast(tr.GetObject(attId, OpenMode.ForRead), AttributeReference)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Dim str As String = (vbLf &amp; attRef.Tag + &quot;&nbsp; &nbsp; &quot; &amp; attRef.TextString)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ed.WriteMessage(str)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Next<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tr.Commit()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Catch ex As Autodesk.AutoCAD.Runtime.Exception<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ed.WriteMessage((&quot;Exception: &quot; + ex.Message))<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Finally<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tr.Dispose()<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; End Try<br />
&nbsp; &nbsp; &nbsp; &nbsp; End Sub</code><hr />
</div> Now, I need to change this Sub to a Function as below:<br />
<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">Private Function ListAttributes (blockName As String) As Boolean</code><hr />
</div> The goal is to list all block attributes if the '<i><b>blockName</b></i>' exists in drawing and return <b>True </b>afterwards. Oppositely it should return me <b>False </b>and print nothing to Editor if <i><b>blockName </b></i>does not exist.<br />
<br />
Can anyone help me please?<br />
<br />
Cheers</div>

 ]]></content:encoded>
			<category domain="http://www.cadtutor.net/forum/forumdisplay.php?69-.NET-ObjectARX-amp-VBA"><![CDATA[.NET, ObjectARX & VBA]]></category>
			<dc:creator>bababarghi</dc:creator>
			<guid isPermaLink="true">http://www.cadtutor.net/forum/showthread.php?79343-Can-t-remove-user-interaction-part-of-my-code-seeking-help</guid>
		</item>
		<item>
			<title>loading linetype to drawing</title>
			<link>http://www.cadtutor.net/forum/showthread.php?79334-loading-linetype-to-drawing&amp;goto=newpost</link>
			<pubDate>Tue, 14 May 2013 19:10:25 GMT</pubDate>
			<description><![CDATA[I'm trying to load a linetype into the active document so i can set a layers linetype to the one i'm trying to load. Now the problem is when i try to load it, autocad is giving me an exception of:...]]></description>
			<content:encoded><![CDATA[<div>I'm trying to load a linetype into the active document so i can set a layers linetype to the one i'm trying to load. Now the problem is when i try to load it, autocad is giving me an exception of: eWasOpenForRead. so i tried to send it via the command line and it worked, BUT the application that im writing just ended... does anybody have any idea as to why this is happening?<br />
<br />
code:<br />
<div class="bbcode_container">
	<div class="bbcode_description">Code:</div>
	<hr /><code class="bbcode_code">&nbsp; &nbsp; &nbsp; &nbsp; private void defaultLayerFix() {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; // Open a transaction for fixing layers that have the correct name<br />
&nbsp; &nbsp; &nbsp; &nbsp; // but not the correct color or linetype.<br />
&nbsp; &nbsp; &nbsp; &nbsp; using(curTrans = db.TransactionManager.StartOpenCloseTransaction()) {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Open the layerTable and lineType table for read.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dwgLyrTbl = curTrans.GetObject(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db.LayerTableId,OpenMode.ForRead) as LayerTable;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; acLinTbl = curTrans.GetObject(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db.LinetypeTableId,OpenMode.ForRead) as LinetypeTable;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Check each layer against the standard layers DataSet.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; foreach (ObjectId layID in dwgLyrTbl) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LayerTableRecord curLayer = curTrans.GetObject(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; layID,OpenMode.ForRead) as LayerTableRecord;<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var layerFound = _LayerDataTable.Rows.Find(curLayer.Name.ToUpper());<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(layerFound != null){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Upgrade the layerTable and LayerRecord for write.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dwgLyrTbl.UpgradeOpen();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curLayer.UpgradeOpen();<br />
<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // modify the color of the layer<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curLayer.Color = Autodesk.AutoCAD.Colors.Color.FromColorIndex(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Autodesk.AutoCAD.Colors.ColorMethod.ByAci, (short)layerFound[2]);<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // I tried to put it in its own transaction in hopes that it would help.. but it didnt<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; using(Transaction tempTrans = db.TransactionManager.StartOpenCloseTransaction()){<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // if the layer is not loaded in the current dwg<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(!acLinTbl.Has((string)layerFound[3])) <br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; try {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; db.LoadLineTypeFile((string)layerFound[3], &quot;acad.lin&quot;);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } catch (Autodesk.AutoCAD.Runtime.Exception e) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Editor ed = acDoc.Editor;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ed.WriteMessage(e.Message);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; tempTrans.Commit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Change current layer linetype to...<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curLayer.LinetypeObjectId = acLinTbl[(string)layerFound[3]];<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Downgrade the layerTable, lineTable and the LayerRecord for read.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curLayer.DowngradeOpen();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dwgLyrTbl.DowngradeOpen();<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // Remove the layer from the standards list<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // so we do not attempt to have redundant layers.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; for(int i = _LayerDataTable.Rows.Count-1; i &gt;= 0; i--) {<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.Data.DataRow dr = _LayerDataTable.Rows[i];<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (dr[&quot;NAME&quot;] == layerFound[0]){<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; dr.Delete();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; break;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; } else {<br />
<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // if the layer is not in within standard add it to a data set<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // to fix manually.<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if(curLayer.Name == &quot;0&quot;)<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; continue;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; var newRow = LayersToFix.NewRow();<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow[&quot;NAME&quot;] = curLayer.Name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // TODO get color name..<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow[&quot;COLOR&quot;] = curLayer.Color.ColorName;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow[&quot;COLOR_ID&quot;] = 0;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LinetypeTableRecord Ltype = (LinetypeTableRecord)curTrans.GetObject(<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curLayer.LinetypeObjectId,OpenMode.ForRead<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; );<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; newRow[&quot;LINETYPE&quot;] = Ltype.Name;<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LayersToFix.Rows.Add(newRow);<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; // accept the changes made in this transaction<br />
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; curTrans.Commit();<br />
&nbsp; &nbsp; &nbsp; &nbsp; }<br />
&nbsp; &nbsp; }</code><hr />
</div> </div>

 ]]></content:encoded>
			<category domain="http://www.cadtutor.net/forum/forumdisplay.php?69-.NET-ObjectARX-amp-VBA"><![CDATA[.NET, ObjectARX & VBA]]></category>
			<dc:creator>btraemoore</dc:creator>
			<guid isPermaLink="true">http://www.cadtutor.net/forum/showthread.php?79334-loading-linetype-to-drawing</guid>
		</item>
		<item>
			<title>Accessing a layers linetype name?</title>
			<link>http://www.cadtutor.net/forum/showthread.php?79326-Accessing-a-layers-linetype-name&amp;goto=newpost</link>
			<pubDate>Tue, 14 May 2013 14:09:38 GMT</pubDate>
			<description>From what i am reading, it takes some work to access a layers linetype name (LineTypeTableRecord.name). Is there another way around this? Is there a way to access the linetype name from within the...</description>
			<content:encoded><![CDATA[<div>From what i am reading, it takes some work to access a layers linetype name (LineTypeTableRecord.name). Is there another way around this? Is there a way to access the linetype name from within the layer in question?</div>

 ]]></content:encoded>
			<category domain="http://www.cadtutor.net/forum/forumdisplay.php?69-.NET-ObjectARX-amp-VBA"><![CDATA[.NET, ObjectARX & VBA]]></category>
			<dc:creator>btraemoore</dc:creator>
			<guid isPermaLink="true">http://www.cadtutor.net/forum/showthread.php?79326-Accessing-a-layers-linetype-name</guid>
		</item>
	</channel>
</rss>
