& Construction

Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
& Manufacturing

Professional CAD/CAM tools built on Inventor and AutoCAD
Integrated BIM tools, including Revit, AutoCAD, and Civil 3D
Professional CAD/CAM tools built on Inventor and AutoCAD
I am using a prefix numbering system to organize my saved view names but I do not want that prefix to show in the view name within the placed view block, as indicated below.
Is it possible to manipulate the field value shown below to remove the first 4 characters?
Ie. How can the field expression given be embedded within in a larger expression that removes the 4 characters?
Use a dieselexpression, a piece of code to remove the first 4 characters from the string.
Wrap your field with $(substr, ... , 5, 256) I think the following should work:
$(substr, $(eval, VIEWTITLE>), 5, 256)
Hi Brock, that's exactly what I was thinking along the lines of - thank you for sharing your Diesel knowledge.
However, this appears to edit the Temporary value of the Field Placeholder Type and subsequently breaks the link as shown below;
Any ideas...?
My diesel 'knowledge' is very limited, but you should be able to wrap your previous expression with the one I posted.
%<\AcSm ?View.Title \f "%tc1" \href "?href###0">%
becomes
$(substr, $(\AcSm ?View.Title \f "%tc1" \href "?href###0"), 5, 256)
I tried that and it gave the same result.
I believe the problem lies in the distinction between Attribute Definition (Associated with Block definition) and Attribute Value (Associated with Block Insert), so my presumption is that it would require a string that is able to 'Get' the Attribute value prior to applying the character edit. The question is, is that possible...?
Maybe try wrapping it with %<..>% it will treat it as a field expression
$(substr, %<\AcSm ?View.Title \f "%tc1" \href "?href###0">%, 5, 256)
I cannot try the code because I don't have a sheetview setup like you do..
Though if this doesn't work it might be impossible to do with diesel expressions since it looks like diesel doesn't have access to the SSM properties, only system variables.
No Luck unfortunately.
I have attached the SSM & Corresponding layout file for your reference.
How to buy
Privacy | Do not sell or share my personal information | Cookie preferences | Report noncompliance | Terms of use | Legal | © 2025 Autodesk Inc. All rights reserved
Type a product name