Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations IDS on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Extracting data from drawing name in forms

Status
Not open for further replies.

mgolo

Mechanical
Apr 7, 2010
2
Hello,
I am creating a drawing form for a company. The drawing name, file name, has the syntax RT345891. I want to rewrite this in the drawing to 4-345.891.

In the form I have the parameter &dwg_name which writes the file name RT345891 in the drawing.

My idea was to use the function: partofmydrawingnumber = extract(&dwg_name,3,3) to create the new string in a repeat region as a relation.

But the parameter &dwg_name is not recognised in the relation as an parameter, it creates an error message.

Do anyone know how I can use the &dwg_name, another name for the file anme parameter or any other get around?

 
Replies continue below

Recommended for you

In the parameter, try using rel_dwg_name instead of &dwg_name - I know it works for the model name, so in theory it should also work for the drawing name.
 
No, rel_dwg_name gave the same error message. However using the rel_model_name made the relation work which it did not with &model_name, so that was correct.

When experementing with this I did relize that I do not know how to create a parameter in the form that updates the data in the drawing. I created the relation mypar=extract(rel_model_name,1,3) and I got the first 3 letters of the form name in the parameter. When adding the form to the drawing I was asked to give a value to the parameter my_par...

So what I really need help to do is create parameters in the form that extracts data from the drawing it is placed in as described above.

Thank you anyway robertib, as you say in theory it should have worked...
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor