eduardopinto07
Automotive
- Feb 28, 2014
- 20
Good night colleagues!
I am trying to find a way to:
1) insert a Part in an Assembly
2) Read a string parameter inside the inserted Part (The parameter was published)
3) Read a Length parameter inside the inserted Part (The parameter was published)
4) Set the Length parameter to another value.
5) based on the string parameter, search for an Axis System that contains part of the previously found String (The Axis System was published).
This is what I have so far...
My environment:
* Part to be inserted.
* Assembly to receive the Part
The assembly contains:
A) A Reaction that is triggered when I insert an Object to my assembly and passes the "inserted" argument from the reaction to the action.
b) An Action that receives the "Inserted" argument from the reaction. A message box displays the attribute Name from the "Inserted" argument.
I need:
1) Read and display the "COMP_TYPE" (String) parameter value = mycomp
2) Read and display the mycomp_STACK_HEIGHT (Length) parameter value = 20mm
3) Set mycomp_STACK_HEIGHT (Length) parameter value = 30mm
4) Search and select AS_mycomp_STACK_HEIGHT (Axis_System).
I tried several times to accomplish it using Find and Query, but I don't understand EKL a lot to do it. I already read the documentation but couldn't understand it...
This is what I tried:
************************************************************************************
Let myParameter (Parameter)
Set myParameter = MyInsertedComponent->Query("Parameter","x.Name==\"COM_TYPE\"")
Let myString (String)
myString = myParameter.Name
Message("Parameter Name:", myString)
************************************************************************************
Any support will be very appreciated.
Thank you for your time and knowledge!
Eduardo
I am trying to find a way to:
1) insert a Part in an Assembly
2) Read a string parameter inside the inserted Part (The parameter was published)
3) Read a Length parameter inside the inserted Part (The parameter was published)
4) Set the Length parameter to another value.
5) based on the string parameter, search for an Axis System that contains part of the previously found String (The Axis System was published).
This is what I have so far...
My environment:
* Part to be inserted.
* Assembly to receive the Part
The assembly contains:
A) A Reaction that is triggered when I insert an Object to my assembly and passes the "inserted" argument from the reaction to the action.
b) An Action that receives the "Inserted" argument from the reaction. A message box displays the attribute Name from the "Inserted" argument.
I need:
1) Read and display the "COMP_TYPE" (String) parameter value = mycomp
2) Read and display the mycomp_STACK_HEIGHT (Length) parameter value = 20mm
3) Set mycomp_STACK_HEIGHT (Length) parameter value = 30mm
4) Search and select AS_mycomp_STACK_HEIGHT (Axis_System).
I tried several times to accomplish it using Find and Query, but I don't understand EKL a lot to do it. I already read the documentation but couldn't understand it...
This is what I tried:
************************************************************************************
Let myParameter (Parameter)
Set myParameter = MyInsertedComponent->Query("Parameter","x.Name==\"COM_TYPE\"")
Let myString (String)
myString = myParameter.Name
Message("Parameter Name:", myString)
************************************************************************************
Any support will be very appreciated.
Thank you for your time and knowledge!
Eduardo