Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I had a question from the record function.
I recorded the function that selected something(ex: parts,assembly,faces,notes),I don't know how can I set the parameter for select something
When I want to change specify part color, I can enter quotes(" ").
ex : SET_PART_COLOR "/5PARTS_ASM_4/1" :RGB 0.2,0.5,1.0
But I don't know which one I select.
I don't know what can I enter parameter.
Maybe it is current part or any one
How can I enter parameter ?
Or I can enter select list to select I need part.
Thank you
The command SET_PART_COLOR is specific to parts and the great thing about parts, as opposed to something like faces, is that you can see the path to the part in the structure browser. So if you have a part that you want to change the color of, you can use the command and pass in the full pathname of the part, in double quotes, as a parameter.
Assume you have a top level part named "Part1". Its full pathname is "/Part1". The command you would enter in the command line to change the color of this part is:
SET_PART_COLOR "/Part1" :RGB 0.2,0.5,1.0 :done
If you wish to make the part's name a parameter within a LISP macro then the code would look something like this:
(setf PartName "/Part1")
(SET_PART_COLOR PartName :RGB 0.2:0.5:1.0 :done)
I hope this helps.
Scott