Field Object Expressions not working or updating.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello fellow CADsters
Short Version
I am trying to create a block that shows a circuit reference, but this same philosophy could apply to any block reference for example Doors, Windows etc.
The 'visible' reference is made up of 3 elements;
{Location}/{Circuit Type}/{Sequential Number}
In this example, these are three separate Attributes (see below for the reason) which are on a hidden layer (or could be hidden Attributes)
There are a lot of other hidden attributes (see below)
I would like an MTEXT to show the 'visible' values of the above attributes (the emphasis on the circuit is deliberate)
e.g:
AA/L3/01
I have tried using Field Object Expressions within the block and using these in MTEXT. but they only ever display the Default Attribute Value. I have tried also making another hidden value with Field Object Expressions in - that doesn't work either and I don't think allows text formatting.
I have tried REGEN UPDATE FIELD SAVE etc even added a Visibility State to try to trigger an update
Currently, I just have the 3 attributes set with different justification, which works but is suboptimal.
Does anyone know how to get this to work or am I going about it in completely the wrong way?
I am using AutoCAD 2012 by the way.
Thank you and now here is a bit more info for those who are interested
Longer Version
{Location}
Is the room or location reference expressed as 2 digits.
Normally two letter, the first is floor the second is the sequential room on that floor. So AA is the first room on the ground floor perhaps
{Circuit Type}
Is the circuit reference or type, expressed in 2 or 3 digits
From this, the electrician or technician can determine the Cable type or Designation
L Lighting - General
L1 Phase Dimming Lighting - normally just mains cable from the dimmer to the light fittings
L2 1-10V - normally switched or live mains PLUS a 2 core control cable carrying 0-10V DC
L3 DALI - normally live mains PLUS a 2 core control cable carrying DALI Data
L4 DMX - normally live mains PLUS a 2 twisted cores & screened control cable carrying DMX Data
S Speaker Cable
S2 2 Core Speaker Cable - could be from rack or from a JB or from a Bass Speaker - please check origin
S4 4 Core Speaker Cable - normally from rack Amp to Speaker or Junction Box
Other designation may be used to show 42 strand / 79 strand and 4mm
A Audio Cable
etc
{Sequential Number}
Simply a sequential number in 2 or 3 digits; 01, 02, 03, 04 .....99
Historically, I have just typed this reference in one go, but I am trying to use the power of CAD a bit more.
I have separate attributes for the three variables above.
Why?
Because at the start of the design, a lot of this information doesn't exist, but the {Location} will of course be known and probably the {Sequential Number} although, this could change as the design progresses just to make the final drawing logical.
So, initially, a 'place holder' reference for a light fitting might be AA-L-00 ... as the design progresses we will eventually know that this light fitting requires a dimmer and becomes AA-L1-01
Initially, I drag in a load of reference blocks, select them all and update the {Location} field to AA (or whatever the location is)
As the design develops the other fields get populated.
What I would like is the visible text, is an mtext string, which sizes (fit) to the block outline and is made up of the three attributes, separated with '/' or '-'
This same RefBlock could be used for countless other things; Door ref, Window Ref, pretty much anything?
ATTOUT and combined with a spreadsheet, it becomes more powerful and we have ours linked to a spreadsheet to populate some of the other information from lookups and ultimately produces a wiring schedule for the electrician using pivot tables.
ATTIN then resolves the CAD file and updates all the blocks, so from within AutoCAD we can see the attributes with Quick Properties or similar.