#1
|
||||
|
||||
Last Machined Face
I am working on an sd-defdialog Toolbox command that creates markers out in space based on 3D coordinates read from a CSV file. I have the lisp code to read the file, create 3D coordinates, and make the markers in the right place, all working properly. Since each marker is machined on the fly, they have a default base color for all faces. I would like to colorize some of the faces. Basically my process looks something like this:
1. create workplane in space at the right 3D coordinate 2. draw a profile on the workplane and create a part with it 3. draw another profile on the workplane and whittle on the part 4. colorize the last face that was created by machining But I have not figured out how to identify the last machined face in step 4. I realize that I can create the marker ahead of time, colorize it, and store it to a file. Then I could load this file, copy it, and move it into position. However, I would like to be able to use lisp to create my part on the fly and still be able to colorize it. Anybody know how to do this? |
#2
|
||||
|
||||
Re: Last Machined Face
Many commands in OSM return selection items which represent the created objects; to get at those selection items, you'll have to call those commands using sd-call-cmds. See the section on sd-call-cmds in the Integration Kit documentation for details. Once you have a selection item, you can use it in subsequent code (such as code which adds color) to identify the object.
Hope this helps, Claus
__________________
CoCreate Modeling FAQ: http://www.clausbrod.de/CoCreateModeling/ |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|