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.

Using drawing file parameters in format

ptcmatt

New member
Hi,


I have been trying for a while on this issue but would like to see if you have any suggestions on best practice etc.


When we create new drawings we want the user parameters &description and &drawing_no and the system parameter &proi_revision to be read from the drawing file, not the model. I can get this to work for the user parameters with :d at the end of the parameter but the &proi_revision does not work. It removes the & sign and when you have saved the drawing and checked it in to Commonspace (to get the revision), opening the drawing the parameter is not working. Any suggestions on how to solve this ?


Many thanks,


Matt
 
you need a parameter in the drawing when the format is placedto get this to work.


In a typical case you would create a new drawing, empty perhaps(?) and add the format. In adding the format there is no proi_revision in the drawing (check parameters in drawing before and after save and see for yourself).


Once saved to WS the proi_revision will be created in the drawing, but it is too late and the format needs to be replaced.


Solution: Make sure there is a parameter proi_revision in the drawing when the format is added! This can be achieved by using a drawing template that has the proi_revision allready there OR make a drawing, save it to WS and then add the format.


If the above is not applicable, check the datecode for bugs.


Good Luck


/Caddie
 
Try to do it a repeat region table. Then it dosent matter if the parameter exist.


I have all parameters in format show from a repeat region. It is much better.


The only backside is that the table will not be automatic updated if you make changes in the format, without you have to replace the format. But that can also be a good thing, depend on what you prefer.
 
Hi again,


Thanks foryour replies.


Caddie - I have tried to stay away from using drawing templates. That would probably solve a few issues, but create a few new. For example a new mapkey or something to update the todays_date parameter. However, I tried to save the drawing (empty), and then insert the format and that seems to work ok. To be able to edit the user parameters I have to run File - Update - Current as the user parametersare created in the new drawing when I insert the format but will be overwritten by the user parameters from the workspace the next time the drawing is opened. Using Update solved that issue as it gets the parameters from the workspace. I just have to create a mapkey for all this and I guess finding/selecting the format can be a little tricky !


jnoval - I had a repeat region for the &proi_revision:d parameter but when inserting the format this parameter looses its functionality and becomes a text "proi_revision". So it is not recognized as a parameter. Otherwise this would have been a solution for us as the backside you mentioned is not a problem for us.


Thanks again for your replies and hope you get some days of work during New Year weekend.


Kindly, Matt
 
I don't understand that you have this problem. It is working for me. I have 2 tabels. One to get revison from drawing and one to get revision from model. The 2 tabels is same size and position. The we can see if the user have the same revison for model and for drawing. When it is the same you will only see ex. 01 if not you will get 01 and 02 mix up.
 
jnoval - How do you call for the drawing revision in your repeat region table. I just created 2 new single tables in a format calling for "&proi_revision" and "&proi_revision:d". When creating a new drawing the first table reports the models revision correctly but the second table shows only the text "proi_revision" when I select Properties on the table.The ampersand "&" and the ":d" is removed. Is there a filter I have to use ?


If I put in"mdl.param.name == proi_revision" then it works for the model revision but is there a similar one for a drawing parameter ?


Many thanks,
Matt
 
Hello Sweden:)


I can't remember. I will start up my laptop and find the format for you. And sent it by a PM.


I think it is something like drw.param.name





Regards Jnoval from Denmark
 
Hello Matt


It look like I was remember wrong.The table I use is without repeat region. It is a ordinary table. I have one table with revision from model - &PROI_REVISION and another for drawing - &proi_revision:d.


I will try to sent you the table by PM. Then you can try to add it into your format, and see if it is working.
 
Usinga drawing templatefor all new drawings before inserting a format seems to be the easiest way to go.The template drawing can reside in Commonspace and will then include all parameters. This will solve the problem of parameters being created/removed when inserting a format to an empty drawing. Thanks s lot Caddie for pointing this out.


Have a nice New Years Eve.


Kindly,


Matt
 

Sponsor

Back
Top