Continue to Site

Welcome to MCAD Central

Join our MCAD Central community forums, the largest resource for MCAD (Mechanical Computer-Aided Design) professionals, including files, forums, jobs, articles, calendar, and more.

silhouette surface’s information in 2D

lwxxyz360

New member
hi, everyone,

I have some trouble in my work, and I come here for help.

I am working on the Dimension in Drawing with
Pro/TOOLKIT.

The generatrix of cylinder is recognized as a edge in
Pro/E 2D. The edge is "silh_edge". The question is, I
can't find any way to get its data although I have pick
it.

Thank you for your time to read this page. It would be a
great happiness for me to get your reply.
 
Hello,


Do you want to get the edge information as you pick from ProSelect or any manual selection in Drawing mode?


If not can you explain in details what you want to do..


Once you get the edge information,you have to know form which solid is it belongs to there you can get the information by visit the edges using Visit functions too.


With regards,


Kishore V
 
kishorev said:
Hello,


Do you want to get the edge information as you pick
from ProSelect or any manual selection in Drawing mode?



If not can you explain in details what you want to
do..


Once you get the edge information,you have to know
form which solid is it belongs to there you can get the
information by visit the edges using Visit functions too.



With regards,


Kishore V

Thank Kishore for your timely reply!

I just try to do the intelligent dimension in 2D-Drawing
view. In the function : "ProDrawingDimCreate ", it would
be indispensable to know the type of what I selected.

Then, it can be possible to distinguish, whether I want
to dimension the distance between two circles' centers
or the diameter of one circle. Now, the ProType of the
silhouette is unknown for me.

Do I explain the question clearly?

Maybe I didn't comprehend the API function completely.I
will be very happy to hear any tips from you.

Sincerely,

Alen
Edited by: lwxxyz360
 
Hello,

I have another question about the type of the dimension
symbol instance.

When I create a symbol in Drawing, I can't select it
again in my code using the function "ProSelect". I have
tried "symbol_3d", "symbol_2d", "symbol".

Is anyone here clear about that or any idea?

Looking forward to your reply.
 
Hello Alen,


If you want to create a dimension of circle in the 2D drawing view,Circle is the feature type of Hole,You need to visit the solid,feature to get the entity handle to create dimension in the drawing.To ge the entity handle you have to work in a flow..like if your drawing has muliple solids then you have to filter it out to which solid is the view and then get the features in the respecive solid,filter the require featue you want to dimension it,visit the feature to get the respecive edge to convert to take the API as the entity to create a dimension.


I hope you understand the way to work out to create a dimension...


Symbol and Symbol instance is different.Let check the is there any symbol instance string as input for the ProSelect() API.


With regards,


Kishore V
 
Thank you very much, Kishorev!

I have successed to do the dimension and get the symbol
instance in drawing. Thanks again!

At the same time, I have another question. How to get the
current view's normal in UV-drawing? I can get some
surface's outward normal, (it's a ProVector.) I can also
get the matrix(4ranks) using the fuction
"ProViewMatrixGet", but I have no idea to deal with the
matrix I found.

Could you tell me the method of gaining the view's
vector?

I am looking forward to your reply. Welcome everyone
here!

Regards,

Alen
 

Sponsor

Articles From 3DCAD World

Back
Top