Print Page | Close Window

Fields: Detecting String or Numerical Value

Printed From: CAD Forum
Category: EN
Forum Name: AutoCAD
Forum Description: Discussion about AutoCAD and AutoCAD LT, viewers, DWG and DWF formats, Design Review, AutoCAD 360, add-ons
URL: https://www.cadforum.cz/forum_en/forum_posts.asp?TID=12001
Printed Date: 31.May.2026 at 20:13


Topic: Fields: Detecting String or Numerical Value
Posted By: Lee.J.Baxter
Subject: Fields: Detecting String or Numerical Value
Date Posted: 07.Sep.2016 at 12:21
Hi,
 
I've just started learning to use fields within AutoCAD drawings, but I've hit a bit of a speedbump. I'm creating a master drawing with a dimension containing a text override (as this part of the drawing is purely a schematic, and isn't to scale).  The thing is, this text override may contain either a string saying "See Front Sheet" or a numerical value.  In order to use this in a formula, I need the text to be evaluated as 0 in the former case, as my formula-based fields are currently evaluating as "####" when a string is entered.
 
For example, one of the fields will add 127 to the value entered in the text override.  If the user enters 1000, I'd want it to display 1127, whereas if the user entered "See Front Sheet", I'd need it to display 127.
 
Thanks,
Lee.



Print Page | Close Window