cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Color processing for FORM and HOLE shapes in drawings

CHASEONHO
18-Opal

Color processing for FORM and HOLE shapes in drawings

I'm trying to easily change the line color for FOMR and HOLE(EXTRUDE) using a combination of toolkit and mapkey.
As shown in the video, after collecting the form shape, the intended operation was attempted by changing the line color.

pic_.png

However, an unexpected result appeared.
If HOLE(EXTRUDE) occurs before the FORM shape, the HOLE(EXTRUDE) color is not changed.

 

How to make the function work smoothly...
When modeling in Creo, is it best to design the FORM first and then use HOLE(EXTRUDE)?

Thanks.

 

P.S. attach test mdl and source

1 ACCEPTED SOLUTION

Accepted Solutions

step 1. collect hole/extrude feature and get geomitem pnt.(arc-curve origin 3d pnt.) 

step 2. translate to 2d 3d pnt.

step 3. collect form feature and geomitem pnt.

step 4. translate to 2d 3d pnt.

 

After comparing the collected form and hole/extrude, if they match, the color change is successful even for the exture by setting the color.

Thanks.

View solution in original post

2 REPLIES 2
FV
17-Peridot
17-Peridot
(To:CHASEONHO)

it is a good idea to use  ProGeomitemIsInactive() when visiting feature geometry. HIH. 

step 1. collect hole/extrude feature and get geomitem pnt.(arc-curve origin 3d pnt.) 

step 2. translate to 2d 3d pnt.

step 3. collect form feature and geomitem pnt.

step 4. translate to 2d 3d pnt.

 

After comparing the collected form and hole/extrude, if they match, the color change is successful even for the exture by setting the color.

Thanks.

Announcements