CoCreate User Forum  

Go Back   CoCreate User Forum > Support > Customization

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
  #1  
Old 12-20-2007, 08:46 AM
rxcited's Avatar
rxcited rxcited is offline
Registered User
 
Join Date: Nov 2007
Posts: 2
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?
Reply With Quote
  #2  
Old 12-20-2007, 10:44 AM
clausb's Avatar
clausb clausb is offline
Registered User
 
Join Date: Nov 2002
Posts: 1,168
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/
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 10:35 AM.



Hosted by SureServer    Forums   Modeling FAQ   Macro Site   Vendor/Contractors   Software Resellers   CoCreate   Gallery   Home   Board Members   Regional User Groups  By-Laws  

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.