<?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 Re: Inconsistency of Construction WorkPlane concept (user can change position of the entity he/she cannot even see) in Inventor Programming - iLogic, Macros, AddIns &amp; Apprentice</title>
    <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11682355#M147775</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;.&amp;nbsp; This sounds like a good one for the folks at Autodesk directly, since they designed that 'construction' toggle ability.&amp;nbsp; I assume they may just be getting the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=BrowserNode" target="_blank" rel="noopener"&gt;BrowserNode&lt;/A&gt; for that WorkPlane, then setting its &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=BrowserNode_Visible" target="_blank" rel="noopener"&gt;Visible&lt;/A&gt; property to False,&amp;nbsp; so that the node does not show in the browser tree, but that is just speculation on my part.&amp;nbsp; I wander if you would be able to use the ModelParameter.&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=ModelParameter_ConvertToReferenceParameter" target="_blank" rel="noopener"&gt;ConvertToReferenceParameter&lt;/A&gt; method, to make that parameter un-editable?&amp;nbsp; That may cause it to become unconstrained though, so it may move...not sure.&amp;nbsp; Maybe add the WorkPlane as Fixed instead, or convert it to fixed afterwards.&amp;nbsp; Just some thoughts.&lt;/P&gt;</description>
    <pubDate>Mon, 16 Jan 2023 13:17:28 GMT</pubDate>
    <dc:creator>WCrihfield</dc:creator>
    <dc:date>2023-01-16T13:17:28Z</dc:date>
    <item>
      <title>Inconsistency of Construction WorkPlane concept (user can change position of the entity he/she cannot even see)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11679744#M147751</link>
      <description>&lt;P&gt;&lt;STRONG&gt;I believe to have discovered some kind of inconsistency of Construction WorkPlane concept.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I love the fact that using API I can create some auxiliary work entities (WorkPlanes) that are not available to end-user in Model Browser.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;But I find it a bit strange that user still can modify position of those entities by editing some parameters.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For example if create new IPT and run the iLogic code like:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Dim oPCD As ComponentDefinition = ThisDoc.Document.ComponentDefinition
oPCD.WorkPlanes.AddByPlaneAndOffset(oPCD.WorkPlanes(1), 0, True)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A new Construction (invisible in Model browser)&amp;nbsp;&lt;SPAN&gt;WorkPlane would be added (which is great).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;...but then user can modify position of this WorkPlane by editing the value of offset parameter (which seems not reasonable).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;I'd like to know whether it is possible to hide that offset parameter from user?&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 15 Jan 2023 05:20:29 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11679744#M147751</guid>
      <dc:creator>Maxim-CADman77</dc:creator>
      <dc:date>2023-01-15T05:20:29Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistency of Construction WorkPlane concept (user can change position of the entity he/she cannot even see)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11682355#M147775</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://forums.autodesk.com/t5/user/viewprofilepage/user-id/572109"&gt;@Maxim-CADman77&lt;/a&gt;.&amp;nbsp; This sounds like a good one for the folks at Autodesk directly, since they designed that 'construction' toggle ability.&amp;nbsp; I assume they may just be getting the &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=BrowserNode" target="_blank" rel="noopener"&gt;BrowserNode&lt;/A&gt; for that WorkPlane, then setting its &lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=BrowserNode_Visible" target="_blank" rel="noopener"&gt;Visible&lt;/A&gt; property to False,&amp;nbsp; so that the node does not show in the browser tree, but that is just speculation on my part.&amp;nbsp; I wander if you would be able to use the ModelParameter.&lt;A href="https://help.autodesk.com/view/INVNTOR/2022/ENU/?guid=ModelParameter_ConvertToReferenceParameter" target="_blank" rel="noopener"&gt;ConvertToReferenceParameter&lt;/A&gt; method, to make that parameter un-editable?&amp;nbsp; That may cause it to become unconstrained though, so it may move...not sure.&amp;nbsp; Maybe add the WorkPlane as Fixed instead, or convert it to fixed afterwards.&amp;nbsp; Just some thoughts.&lt;/P&gt;</description>
      <pubDate>Mon, 16 Jan 2023 13:17:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11682355#M147775</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-01-16T13:17:28Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistency of Construction WorkPlane concept (user can change position of the entity he/she cannot even see)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11684999#M147812</link>
      <description>&lt;P&gt;I don't know the reason why you need to hide workplane from UI. But if you want to hide some part of model history, you can use &lt;A href="https://help.autodesk.com/view/INVNTOR/2023/ENU/?guid=GUID-F4D9DA68-D8CF-4571-9A3F-12AEED0F1624" target="_blank" rel="noopener"&gt;ClientFeature&lt;/A&gt; functionality. How it works you can see in any profile from ContentCenter (Driven Length feature)&lt;/P&gt;&lt;P&gt;If you want, you can also use HiddenParameters property to hide parameters from the user. See &lt;A href="https://forums.autodesk.com/t5/inventor-ilogic-and-vb-net-forum/clientfeature-hiddenparameters/td-p/4625325" target="_blank" rel="noopener"&gt;this thread&lt;/A&gt; for more info.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EDIT:&lt;/P&gt;&lt;P&gt;Code sample&lt;/P&gt;&lt;LI-CODE lang="visual-basic"&gt;Sub Main
	Dim part As PartDocument = ThisDoc.Document

	Dim cliFeatures As ClientFeatures = part.ComponentDefinition.Features.ClientFeatures

	Dim xyWorkPlane As WorkPlane = part.ComponentDefinition.WorkPlanes(3)
	Dim wPlane As WorkPlane = part.ComponentDefinition.WorkPlanes.AddByPlaneAndOffset(xyWorkPlane, 1)

	Dim cliFeatureDef As ClientFeatureDefinition = cliFeatures.CreateDefinition("HiddenWorkPlane", wPlane)
	Call cliFeatureDef.AddDependency(wPlane.Definition.Offset)

	Dim cliFea As ClientFeature = cliFeatures.Add(cliFeatureDef, "your-client-id-here")

	Dim hiddenParams As ObjectCollection = ThisApplication.TransientObjects.CreateObjectCollection()
	hiddenParams.Add(cliFea.Parameters(1))
	cliFea.HiddenParameters = hiddenParams
End Sub&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Jan 2023 12:13:16 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11684999#M147812</guid>
      <dc:creator>Michael.Navara</dc:creator>
      <dc:date>2023-01-17T12:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistency of Construction WorkPlane concept (user can change position of the entity he/she cannot even see)</title>
      <link>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11685249#M147817</link>
      <description>&lt;P&gt;Using the ClientFeature route seems to do the opposite scenario of the normal WorkPlane set to Construction status.&amp;nbsp; When creating a WorkPlane, and setting it to Construction, you do not see the WorkPlane in the browser tree or on the screen, but you do see the parameter in the parameters dialog.&amp;nbsp; But when using the ClientFeature route shown above, you do see the node for it in the model browser, and on the modeling screen, but you don't see the parameter in the parameters dialog box.&amp;nbsp; Interesting situation.&amp;nbsp; I suppose you could add this following little bit of code to the end of the ClientFeature code, to take it another step, and at least hide it in the model browser tree, but it would still be visible on the screen.&amp;nbsp; Maybe if you turn visibility of the WorkPlane off right after you create it, that would solve the problem.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="general"&gt;cliFea.BrowserNode.Visible = False&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Jan 2023 13:42:20 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/inventor-programming-ilogic/inconsistency-of-construction-workplane-concept-user-can-change/m-p/11685249#M147817</guid>
      <dc:creator>WCrihfield</dc:creator>
      <dc:date>2023-01-17T13:42:20Z</dc:date>
    </item>
  </channel>
</rss>

