<?xml version="1.0" encoding="windows-1250" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="https://syndication.webwiz.net/rss_namespace/">
 <channel>
  <title>CAD F&#243;rum : Inventor vba</title>
  <link>https://www.cadforum.cz/forum/</link>
  <description><![CDATA[Toto je XML obsahový kanál serveru; CAD F&#243;rum : CAD programov&#225;n&#237; : Inventor vba]]></description>
  <pubDate>Mon, 11 May 2026 23:15:06 +0000</pubDate>
  <lastBuildDate>Sun, 25 Mar 2018 14:49:19 +0000</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 12.04</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>https://www.cadforum.cz/forum/RSS_post_feed.asp?TID=25856</WebWizForums:feedURL>
  <image>
   <title><![CDATA[CAD F&#243;rum]]></title>
   <url>https://www.cadforum.cz/forum/forum_images/web_wiz_forums.png</url>
   <link>https://www.cadforum.cz/forum/</link>
  </image>
  <item>
   <title><![CDATA[Inventor vba : Pros&#237;m v&#225;s nevedel by mi niekto...]]></title>
   <link>https://www.cadforum.cz/forum/forum_posts.asp?TID=25856&amp;PID=110969&amp;title=inventor-vba#110969</link>
   <description>
    <![CDATA[<strong>Autor:</strong> <a href="https://www.cadforum.cz/forum/member_profile.asp?PF=83088">fillchr</a><br /><strong>Předmět:</strong> 25856<br /><strong>Zasláno:</strong> 25.bře.2018 v 14:49<br /><br />Prosím vás nevedel by mi niekto poradiť prečo mi nepremietne všetky entity do roviny ale len niektoré? Ďakujem veľmi pekne<div><br></div><div>požitý kód:</div><div><br></div><div><pre ="api-code hljs bash" style="-sizing: border-; margin-top: 5px; margin-bottom: 0px; padding: 8px; overflow: auto; : rgb245, 245, 240; color: rgb68, 68, 68; border: 1px solid rgb187, 187, 187; border-radius: 5px; word-wrap: normal; tab-size: 4;">Sub CreateImportedDWGComponentSample()    Dim oDoc As PartDocument    Set oDoc = ThisApplication.Documents.Add(kPartDocumentObject)        Dim oCompDef As PartComponentDefinition    Set oCompDef = oDoc.ComponentDefinition        Dim oRefComponents As ReferenceComponents    Set oRefComponents = oCompDef.ReferenceComponents        <span style="-sizing: border-; color: blue;"><span ="hljs-" style="-sizing: border-; color: rgb136, 0, 0;">' Create a ImportedComponentDefinition based on an AutoCAD file.</span></span><span ="hljs-" style="-sizing: border-; color: rgb136, 0, 0;">    Dim oImportedCompDef As ImportedComponentDefinition    Set oImportedCompDef = oRefComponents.ImportedComponents.CreateDefinition("C:\Temp\ACADDWG.dwg")        Dim oImportedDWGDef As ImportedDWGComponentDefinition        If oImportedCompDef.Type = kImportedDWGComponentDefinitionObject Then        Set oImportedDWGDef = oImportedCompDef    Else        End    End If        Dim oMatrix As Matrix    Set oMatrix = ThisApplication.TransientGeometry.CreateMatrix    oMatrix.SetTranslation ThisApplication.TransientGeometry.CreateVector(0, 0, 10)        oImportedDWGDef.Transformation = oMatrix        </span><span style="-sizing: border-; color: blue;"><span ="hljs-" style="-sizing: border-; color: rgb136, 0, 0;">'</span> Create the ImportedComponent</span>    Dim oImportedComponent As ImportedComponent    Set oImportedComponent = oRefComponents.ImportedComponents.Add(oImportedDWGDef)        Dim oImportedDWGComponent As ImportedDWGComponent        If oImportedComponent.Type = kImportedDWGComponentObject Then        Set oImportedDWGComponent = oImportedComponent                Dim oSk As PlanarSketch        Set oSk = oCompDef.Sketches.Add(oCompDef.WorkPlanes(3))                <span style="-sizing: border-; color: blue;"><span ="hljs-" style="-sizing: border-; color: rgb136, 0, 0;">' Get the DWGBlockDefinition for model space.</span></span><span ="hljs-" style="-sizing: border-; color: rgb136, 0, 0;">        Dim oDWGModelSpaceDef As DWGBlockDefinition        Set oDWGModelSpaceDef = oImportedDWGComponent.ModelSpaceDefinition                </span><span style="-sizing: border-; color: blue;"><span ="hljs-" style="-sizing: border-; color: rgb136, 0, 0;">'</span> Project DWG entities to planar sketch.</span>        Dim oDWGEntity As DWGEntity        For Each oDWGEntity In oDWGModelSpaceDef.Entities                     Call oSk.AddByProjectingEntity(oDWGEntity)        Next    End IfEnd Sub</pre></div><div><br></div><div><br></div><div><br><div><img src="uploads/83088/Capture.JPG" height="1532" width="2560" border="0" /></div></div>]]>
   </description>
   <pubDate>Sun, 25 Mar 2018 14:49:19 +0000</pubDate>
   <guid isPermaLink="true">https://www.cadforum.cz/forum/forum_posts.asp?TID=25856&amp;PID=110969&amp;title=inventor-vba#110969</guid>
  </item> 
 </channel>
</rss>