×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Extracting data from drawing name in forms

Extracting data from drawing name in forms

Extracting data from drawing name in forms

(OP)
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?

 

RE: Extracting data from drawing name in forms

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.

RE: Extracting data from drawing name in forms

(OP)
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...

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources