Over 1.108.000 registered users (EN+CZ).
AutoCAD tips, Inventor tips, Revit tips, Civil tips, Fusion tips.
Try the updated Units converter and the new precise Engineering calculator.
New AutoCAD 2026 commands and sys.variables and env.variables,.
Discussion forum
?CAD discussions, advices, exchange of experience
CAD discussion forum - ask any CAD-related questions here, share your CAD knowledge on AutoCAD, Inventor, Revit and other Autodesk software with your peers from all over the world. To start a new topic, choose an appropriate forum.
Please abide by the rules of this forum.
This is a peer-to-peer forum. The forum doesn't replace the official direct technical support provided by ARKANCE for its customers.
How to post questions: register or login, go to the specific forum and click the NEW TOPIC button.
|
Post Reply
|
| Author | |
martingtc
Groupie
Joined: 17.Jun.2016 Location: United Kingdom Using: 2008LT Status: Offline Points: 28 |
Topic: Diesel Field Expression - If StatementPosted: 24.Jun.2016 at 15:34 |
|
Anyone?
|
|
![]() |
|
martingtc
Groupie
Joined: 17.Jun.2016 Location: United Kingdom Using: 2008LT Status: Offline Points: 28 |
Posted: 21.Jun.2016 at 09:25 |
|
Anyone please? It's for work and I'm really struggling :(
|
|
![]() |
|
martingtc
Groupie
Joined: 17.Jun.2016 Location: United Kingdom Using: 2008LT Status: Offline Points: 28 |
Posted: 20.Jun.2016 at 12:25 |
|
Can you explain the IF side of it please?
Example; Drawing no. 101 - my paperspace (at the moment) shows 101 - perfect filename 12345-Rev01 I want my paperspace to show 101, but also the -Rev01 from the filename. I can get this to work, but only if there is a Rev. If the file is 12345, the paperspace titleblock shows 101---- :( I'd like to hide the dashes if there are no characters to show and I'm so new, I don't know how to control an IF statement just yet Thanks, [edit, the 101 drawing no. is pulled from a tab, the Rev01 needs to be pulled from the filename - so in theory 2 different diesel expressions next to each other?]
Edited by martingtc - 20.Jun.2016 at 12:37 |
|
![]() |
|
Vladimir Michl
Moderator Group
Arkance Systems CZ Joined: 26.Jul.2007 Location: Czech Republic Using: Autodesk software Status: Offline Points: 2147 |
Posted: 20.Jun.2016 at 10:01 |
|
This DIESEL expression will take the drawing name from the sixth character:
You can combine it with $(if - based on string length or the "Rev" substring. |
|
|
Vladimir Michl (moderator)
ARKANCE - https://arkance.world - Autodesk Platinum Partner |
|
![]() |
|
martingtc
Groupie
Joined: 17.Jun.2016 Location: United Kingdom Using: 2008LT Status: Offline Points: 28 |
Posted: 20.Jun.2016 at 09:51 |
|
Can anyone help??
|
|
![]() |
|
martingtc
Groupie
Joined: 17.Jun.2016 Location: United Kingdom Using: 2008LT Status: Offline Points: 28 |
Posted: 17.Jun.2016 at 10:30 |
|
Hi, I'm new to the world of fields and diesel (using 2008 LT so I dont have a right click menu)
I've managed to set up some auto fills based on partial filenames etc. One I'm stuck on is a drawing ref Basically we call our drawing files a 5 digit reference. I have done this one. Our sheet numbers are 3 digits, again, this is sorted. When we revise the drawing, it will become XXXXX-Rev01. I'm trying to add the -Rev01 part to the sheet number which I can do, but if the drawing is not yet revised (so still XXXXX) it shows up as ---- I'd like to remove these and show blank, unless there is a -Rev01, then show that if that's the case. Can anyone help?? Thanks in advance
|
|
![]() |
|
Post Reply
|
|
|
Tweet
|
| Forum Jump | Forum Permissions ![]() You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |
This page was generated in 0,078 seconds.
![CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz] CAD Forum - tips, tricks, discussion and utilities for AutoCAD, Inventor, Revit and other Autodesk products [www.cadforum.cz]](/common/arkance_186.png)


Diesel Field Expression - If Statement

Topic Options


