<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic How to get/set user parameters in AutoCAD 2015 using external vb.net in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/how-to-get-set-user-parameters-in-autocad-2015-using-external-vb/m-p/5478313#M41598</link>
    <description>&lt;P&gt;I have a vb.net 2012 application (external to autocad) that opens autocad, reads thru the dimension layer and sets values, regenerates the drawing and saves to dwg file.&amp;nbsp; This works fine.&amp;nbsp; But now I also need to read thru the user parameters and set those values.&amp;nbsp; I am not finding anything on how to do this.&amp;nbsp; below is what is being done to get dimensions.&amp;nbsp; i need to do the same type of thing for user parameters.&amp;nbsp;(note: using interop)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance would be greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;PRE&gt;        modelSpace = thisdrawing.ModelSpace


        For Each acadEntity As AcadEntity In modelSpace
            'Our interest is only entities lying Dimension layer
            If [String].Compare(acadEntity.Layer, layerName) = 0 Then
                Entities.Add(acadEntity)
            End If
        Next



        'modify each entity values and names
        For Each entity As AcadEntity In Entities
            Dim dimension As AcadDimension = TryCast(entity, AcadDimension)
            If dimension IsNot Nothing Then
                Dim dimvalue As String = dimension.dimconstrvalue
                Dim dimname As String = dimension.dimconstrname
                Dim dimexpression As String = dimension.dimconstrexpression

'code here to set dim expression
 
                dimexpression = replacementvalue
                dimension.dimconstrexpression = dimexpression
                dimension.Update()
            End If
        Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Jan 2015 16:40:51 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-01-26T16:40:51Z</dc:date>
    <item>
      <title>How to get/set user parameters in AutoCAD 2015 using external vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-set-user-parameters-in-autocad-2015-using-external-vb/m-p/5478313#M41598</link>
      <description>&lt;P&gt;I have a vb.net 2012 application (external to autocad) that opens autocad, reads thru the dimension layer and sets values, regenerates the drawing and saves to dwg file.&amp;nbsp; This works fine.&amp;nbsp; But now I also need to read thru the user parameters and set those values.&amp;nbsp; I am not finding anything on how to do this.&amp;nbsp; below is what is being done to get dimensions.&amp;nbsp; i need to do the same type of thing for user parameters.&amp;nbsp;(note: using interop)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any guidance would be greatly appreciated.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;PRE&gt;        modelSpace = thisdrawing.ModelSpace


        For Each acadEntity As AcadEntity In modelSpace
            'Our interest is only entities lying Dimension layer
            If [String].Compare(acadEntity.Layer, layerName) = 0 Then
                Entities.Add(acadEntity)
            End If
        Next



        'modify each entity values and names
        For Each entity As AcadEntity In Entities
            Dim dimension As AcadDimension = TryCast(entity, AcadDimension)
            If dimension IsNot Nothing Then
                Dim dimvalue As String = dimension.dimconstrvalue
                Dim dimname As String = dimension.dimconstrname
                Dim dimexpression As String = dimension.dimconstrexpression

'code here to set dim expression
 
                dimexpression = replacementvalue
                dimension.dimconstrexpression = dimexpression
                dimension.Update()
            End If
        Next&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jan 2015 16:40:51 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-set-user-parameters-in-autocad-2015-using-external-vb/m-p/5478313#M41598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-01-26T16:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to get/set user parameters in AutoCAD 2015 using external vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-set-user-parameters-in-autocad-2015-using-external-vb/m-p/5965608#M41599</link>
      <description>&lt;P&gt;Dear,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do the same. Have you already found any solution to this problem?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;</description>
      <pubDate>Sun, 27 Dec 2015 14:53:03 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-set-user-parameters-in-autocad-2015-using-external-vb/m-p/5965608#M41599</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-27T14:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get/set user parameters in AutoCAD 2015 using external vb.net</title>
      <link>https://forums.autodesk.com/t5/net-forum/how-to-get-set-user-parameters-in-autocad-2015-using-external-vb/m-p/5966132#M41600</link>
      <description>&lt;P&gt;maybe the AutoCAD command "-DIMSTYLE" is what you're looking for.&lt;BR /&gt;-DIMSTYLE&amp;lt;space&amp;gt;Variable&amp;lt;space&amp;gt;ISO-25&amp;lt;space&amp;gt;DIMxxx&amp;lt;space&amp;gt;newval&amp;lt;enter&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;-DIMSTYLE&amp;lt;space&amp;gt;Save&amp;lt;space&amp;gt;ISO-25-1&amp;lt;enter&amp;gt;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2015 12:05:18 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/how-to-get-set-user-parameters-in-autocad-2015-using-external-vb/m-p/5966132#M41600</guid>
      <dc:creator>SENL1362</dc:creator>
      <dc:date>2015-12-28T12:05:18Z</dc:date>
    </item>
  </channel>
</rss>

