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

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

Highlighted
Newbie

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

3 REPLIES 3

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

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.



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

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

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

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