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.

Note Creation

rnd_doss

New member
Hi Folks,


Could you please explain how to create a note as involves the following steps.


(Assume the rectangle Block drawing is avaialble )


1. Need to filter the dimensions like height, Width andlengthon the drawing without selecting the dimensions or model.


2. Filetered value need to converted as Note in the drawing. For example


"The Block size is 50 X 100 X 10"


As i know for filltering the dimensions involves the ProSelect fuction.


1. Is there is other way to filter the specific dimensions with selecting the model.?
 
Hi Murugan,


ProMdlfileCopy not working - Pro/Toolkit ,Do you check the reply for this issue?


I given some modified code and attached to the reply.Let me know is it working fine?


For the current issue,it was not much clear for me. Do you required the block size with out checking the dimensions in the drawing in the form of Note Or You would like to retrieve the Otuline diemnsion of the part or modle in the drawing.


ProSolidOutline() gives you the Outline dimension of the Part ( it will measured from the default Csys of the Pro-Engineer).


Am i understand your Req't is fine or...?


With regards,


Kishore V
 
Hi Kishore,


I want to create a Note inside the drawing (detail mode) stating that dimensions of a part.


for example: for a Block drawing the note has to be created as like


"Note : Use Material 50mm x 50mm x 50mm"


( All dimensions will depend the length, width and thickness of the partrespectively.)


Kindly let me know in whatway we can accomplish this one.


Thanks for your cooperation.


Regards,


Murugadoss
 
Hi Murugan,


Here is the sample for the "Drawing Note",Create a drawing for a simple solid part.Compile and create a "exe" for this code.Crete a text folder and copy the menu and message file into that.


Plz select any edge in the view and it creates a drawing note with leader at a offset distance of 100.00,100.00,0.00 hard coded in code.I hope it will help out to add your requirements.


With regards,


Kishore V2007-05-24_055639_DrawingNote.zip
 
Hi Kishore,


Thanks for your reply.


I dont have any issues to create standard notes (carrying the constant text) on drawing. But my requirement is somewhat different as like below.


1. A Block will be created many time with different dimensions. For exampe .


Name Length Width Thick


a&nbsp ; 50 75 10


b&nbsp ; 250 150 25 etc.


2. So every time if i create a block using Custom Program, then the note has to be create automatically with the respective dimesions as above said.


3. In order to accomplish the above task(my assumption ) there are two steps need to follow


a. Filtering the dimension ids for length, width and thickness respectively. ( Filtering the dimensions has to be done automatically without user intraction that means user should not select the part at any cost.)


b. adding dimensions id's values dynamically in between note text.


I have attached the sample screen capture of the drawing for your reference.


2007-05-24_070844_Drawing.zip


Regards,


Murugadoss
 
Murugadoss,


In order for this to happen automatically you will have to use ProNotificationSet and I'm guessing you want to do this on a PRO_MDL_REGEN_POST event.
 
Hello Patrick,


I am trying to call the UI dialog box from the ProNotification() call back function.But i could not able to see the dialog box.I check the error return, it is successfull.I don't know why i could not able to see the dialog box.


I user PRO_MDL_CREATE_POST notification in my application.


With regards,


Kishore V
 
Make sure you specified the proper path to your text directory. Also,the dialog box may be in the background. Minimize Pro/E and then maximize it and see if your dialog box is shown.
 
Is there something special to do to show the "Menu manager" when you are in drawing mode, i can get it right in the assembly and part, but im not able to display it in drawing mode, why is that ?

Bah .. using ProMenubarMenuAdd is easier, plusss it looks way better that the menu manager.
Edited by: David_Hyper
 

Sponsor

Back
Top