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

Community Tip - Did you get called away in the middle of writing a post? Don't worry you can find your unfinished post later in the Drafts section of your profile page. X

How to insert the same units of thethe part in a drawing?

sabattini-m
4-Participant

How to insert the same units of thethe part in a drawing?

Hello to everyone,
I have a question about the units inside a dwg.
If I set a units from file->prepare menu in a prt file, how can i set one of that units inside a dwg automatically?
Is it possible o I must set it by myself?

Thank you so much

4 REPLIES 4

With the drawing window active select File > Prepare > Drawing Properties ... then select Detail Options > change.

 

You can change the options one at a time, or load you own drawing.dtl file (drawing setup/config file).

An example dtl file is attached here (with drawing_units equal to mm).

You can save the text in a file with a .dtl extension (MyMetric.dtl for example).

 

If I remember correctly you can set-up template drawings with the appropriate settings. Then use your template(s) when creating new drawings.

 

The units specified in config.pro are used for the solid geometry.

sabattini-m
4-Participant
(To:jhaston-3)

Thank you jhaston for your answer,

I tried, but maybe I formulated a wrong question. We suppose to start from a part file. I set my units from file->prepare->model properties. Now inside the tab I have many units (mm for length, kg for weight etc.)

Now my question is, how I can set in my start part a relation that or a parameter that change automatically, when I choose the units, and that with a string i can load in a frm file?

So the start of my question is in start part to set units parameter that change automatically, so I can write the command with &<units> in carthage to obtain an autocompilation of it.

 In the relations tab there is a relation to obtain the units?In the relations tab there is a relation to obtain the units?

After the relation in the first picture the unit parameter will compare here in parameters tab like a string valueAfter the relation in the first picture the unit parameter will compare here in parameters tab like a string valueand finally I can write it in frm file inside carthage with & before nameand finally I can write it in frm file inside carthage with & before name

Obviously the unit parameter inside the parameters tab will be a string data and not a number. 

I hope that the question is more clearly now.

Thank you so much

 

Matteo

BenLoosli
23-Emerald II
(To:sabattini-m)

The units in the part file are set in your config.pro file.

The units used for dimensioning your drawings are set in a *.dtl file. (*=any file name)

There is no correlation between the 2 files or settings unless you do it manually.

IF you use template files for your parts/assemblies and drawings, then you gain some control over the settings as they are set in the template files and get carried over to your new files.

 

sabattini-m
4-Participant
(To:BenLoosli)

Goodmorning to everyone,

I found the solution in an article that was published many years ago. The link is below

 

https://community.ptc.com/t5/Creo-Modeling-Questions/Pro-E-Model-unit-parameter/td-p/150925

 

The only think that must be corrected is the string.

In the answer is wrote: &asm.mbr.ptc_unit.UnitsLength, but the correct string to insert inside the carthage is:&mbr.ptc_unit.UnitsLength

So in relations tab I checked the Units sensitive and the I adding a new relation inside post-generation called .

This had create a new parameter inside parameters tab that is locked. And at the last time using the string that I write above inside the carthage the units is automatically write inside it and when the units change it will be upload after rigenerate automatically in each drawing.

Thank you so much for your time and for your answer

Have a nice day

Matteo

Announcements
NEW Creo+ Topics: Real-time Collaboration


Top Tags