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?
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
RE: Extracting data from drawing name in forms
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...