Hello,
I use this text in a drawing: &dwg_name
allowing to display the name of my file.
If the name of my file is 126557-Rev2,
is there a way to display only the 6 first characters? (126557)
thanks,
Laurent
Laurent,
I think it is not possible in Drawing mode.
dwg_name is system parameter for drawings and in Drawing mode it is not possible to define relations.
If model name = drawing name then you can define a parameter and relation in the model and display the parameter in the drawing.
Example:
first6 = extract(rel_model_name(), 1, 6)
Martin Hanak
The only way I know of is to define another parameter and use the "EXTRACT" function to pull the six characters you want from the string, such as:
substringDrawingName = EXTRACT ( dwg_name, 1, 6 )
Then use &substringDrawingName where you were using &dwg_name.
Thank you for your answers,
but, as I work on a 2d drawing (without any link with 3d, no model),
I can't have access to Relations.