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

Community Tip - Need help navigating or using the PTC Community? Contact the community team. X

J-Link: how to determine whether a part is a solid or a surface model

jaapkramer
1-Visitor

J-Link: how to determine whether a part is a solid or a surface model

Hi,

In the coming months, we'll probably be importing thousands of models from CoCreate Modeling into Pro/E.

Luckily, CoCreate v.17 allows "save as .neu", which works MUCH better than STEP or IGES, but we noticed that complex models with lots of roundssometimes still result in non-solid models. I'd like to be able to import a large assembly from CoCreate, push a button, and then get a list of all models that are NOT solids. Even better: I'd like all good models to be hidden, and al "wrong" models to be non-hidden 🙂

The only trick I can think of now is to determine the volume of each model (non-solid has value 0), but that will probably take a fair amount of calculation time with a large assy...

Is there a smarter method for this???

Thanks!
Regards,

Jaap


This thread is inactive and closed by the PTC Community Management Team. If you would like to provide a reply and re-open this thread, please notify the moderator and reference the thread. You may also use "Start a topic" button to ask a new question. Please be sure to include what version of the PTC product you are using so another community member knowledgeable about your version may be able to assist.
3 REPLIES 3

Jaap,
I think your first method of computing the volume might be a good way of
doing it. I know in Pro/TOOLKIT when I retrieve the mass properties
(ProSolidMassPropertyGet) the returned structure contains the volume. It
might not be as slow as you think. However; you are using J-Link which
may be a bit slower than Pro/TOOLKIT.

Patrick Williams
Sr. Systems Engineer II
Mechanical Engineering Solutions
Missile Systems
Raytheon Company

+1 520.545.6995 (business)
+1 520.545.6399 (fax)
-

TU/M12/8
6221 S Palo Verde Rd
Tucson, AZ 85706 USA
www.raytheon.com



This message contains information that may be confidential and privileged.
Unless you are the addressee (or authorized to receive mail for the
addressee), you should not use, copy or disclose to anyone this message or
any information contained in this message. If you have received this
message in error, please so advise the sender by reply e-mail and delete
this message. Thank you for your cooperation.



Hi Patrick,

thanks for your reply! In J-Link it's something similar:

MassProperty masProp = solid.GetMassProperty(null);
Double volume = masProp.GetVolume();

So,time to fire upmy Netbeans and find out...

Kind regards,

Jaap

Yes, it works 🙂

I tried it on an assy with appr. 90 complex plastic parts. Took 30 seconds, so that's appr. 3 models / second.

Nicely reported the surface models with a volume of 0.

Good enough!
Regards,

Jaap

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags