Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Control forms without parameters

7 REPLIES 7
Reply
Message 1 of 8
Xiffix
442 Views, 7 Replies

Control forms without parameters

From iLogic i got a lot of information. And i want to configure or display this in a form. 

But without having to make parameters for everything.

Example:

Display the stocknumber of an ipart/iassembly.

Configure the parameters from a part in the main assembly.

 

Hope my question is clear.

 

Thanks, Xiffix

(Inventor 2014 trail)

7 REPLIES 7
Message 2 of 8
mrattray
in reply to: Xiffix

You can add iProperties directly to a form, but as far as I know there is no way to display information in a form that is not contained in the active document.
Mike (not Matt) Rattray

Message 3 of 8
Xiffix
in reply to: mrattray

Thanks for your fast reply

The ipropperties i can add into a form is only from the active assembly. I want the stocknumber from a subassembly.

 

Message 4 of 8
mrattray
in reply to: Xiffix

Then that's not directly available, either. You could, however use some simple iLogic code to link the parameters and properties back to user parameters in the assembly, which can, then, be added to your form.
Mike (not Matt) Rattray

Message 5 of 8
CCarreiras
in reply to: Xiffix

Hi!

 

It's possible to control the part parameter from the main assembly.

 

  • Create numeric parameters in the main assembly to match the part's parameter and link them with iLogic.

Example:

Skel:1    - Is the part name in the main assembly browser

Altura_Total_Input    - Is the part parameter

Altura_Total     -  Is the assembly's parameter created to match the part's parameter.

 

Now you can change the part's parameters in a form within the main assembly.

 

  • To do the opposite, you can link the part parameter's (or sub-assembly) with the main assembly. Open the main assembly parameters chart and use "Link" to link parameters from other parts.

Now you can have parameters from other parts in the main assembly and you can place them in forms.

 

1.png

 

Did you find this reply helpful ? If so, use the  Mark Solutions!  Accept as Solution or Give Kudos!Kudos - Thank you!



Regards.
CCarreiras
Message 6 of 8
mrattray
in reply to: CCarreiras

Just a quick note: Placing both "InventorVb.DocumentUpdate()" and "iLogicVb.UpdateWhenDone = True" at the end of your rules is redundant.
Mike (not Matt) Rattray

Message 7 of 8
Xiffix
in reply to: Xiffix

If i understand you guys correctly i cant skip the "linking the ipropperty(from a part) to parameter(in the assembly)" part before adding it to a form?

 

Is there a way to make parameters with iLogic?

MultiValue.SetList("DINJIS", "DIN", "JIS")

 This is only possible if there already is a parameter called DINJIS in this case.

 

And can i display part parameters into a form without the extra parameter in the assembly?

 

Thank you guys!

Message 8 of 8
mrattray
in reply to: Xiffix

Dim oCompDef As ComponentDefinition
oCompDef = ThisDoc.Document.ComponentDefinition
oCompDef.Parameters.UserParameters.AddByValue("myParameter",1,kInchLengthUnits)

 

No, the form can only display information contained in the active document.

Mike (not Matt) Rattray

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report