Formulas replaced with Values when changing multiple Dynamic Component Options

advice
bug

#1

I wonder if anyone has seen this. I have a lot of dynamic components with many attributes - many with complex formulas. If I select 2 of the same DC’s at a time (say window & window#1), open the component options dialog and change a single value (drop down list or option etc…), not only do all of the component options change for both components (not just the values I changed) but all my formulas in the 2 attributes turn into values - the formulas are gone…

If there is no work around, is there a way to stop the component options dialog from opening if more than 1 component is selected - to stop people from messing up very important formulas which are used in my costings.

**** I’ve just done a test and the change to the formula occurs when the Value of the attribute (the one with the formula ) is set to “users can see this attribute”. So even tho a user cannot change this value, changing 2 compenents options at the same time replaces the formula with what ever value is shown to the user at the time - Now that’s gotta be a Bug…


Custom Attribute Report using Trimbles Attribute Reporter Script
#2

For the attribute to be overwritten then it would be exposed in the option dialogue, only way to stop this would be to use “Users cannot see this attribute” .

Alternatively
If you use a double wrapped component, you can swap it with itself to reinstate the formulas, This double wrap is created by selecting the contents of a component and creating a new component, then passing the values through. (Make sure the LenX,LenY,LenZ attributes are exposed if length updates required)
component example:
SmartJoist.skp (126.3 KB)

as can be swapped and retain the lenY with itself or a similar component like the steel beam

UB-Steel.skp (164.2 KB)

otherwise ruby?


#3

Very Interesting - I’ve learned something. This is going to be very useful, thanks a heap Philip… Cheers

For the record. I’ve tried the SketchData free TOOLBAR plugin. Although this is for cabinets which I don’t really need for now, the free toolbar has an attributes dialog which seems to be able to change 1 or more attribute for multiple components without changing other uneffected attributes (shows them as variable)…


#4

Good one, could be the way to go…$45 usd, that’s okay, will test it whilst its free.

Have you got a good component placer? I’ve modified the SU line example
http://sketchucation.com/forums/viewtopic.php?f=289&t=63810

to place and scale to two points

currently working on it, a few steps further on …ruby mindset, my VBA experience seems more of a hinderance, good for excel though


#5

I started dabbling in Ruby, just couldn’t find the time. I’ll check out your link tho… might be interesting…

Just on another note, I posted another question which you might be able to help me out with - if you find the time.


#6

I’ve run into the same problem. Has anyone found a solution besides “don’t show the attributes” and double wrapping?


Can a DC Attribute Text Box (Summary/Description) contain a Formula and html Formatting?
#7

pcmoor, I have read your posts talking about double wrapping a component in a couple threads. Could you pleas elaborate a bit? I am building a dc database for deck design and am trying to understand where and how this technique can be applied. I am new to dynamic components but am finding them quite fun to build and use, any tips or techniques that don’t present themselves obviously are greatly appreciated… Thanks in advance.


#8

adding another shell to a component acts as shield to prevent certain attributes from being overwritten, so its a quick fix for rotation interference.

When it comes to swapping components, consider the attached components, right click, saveas each to a folder, then try to swap them, despite the formula for current dimensions, the geometry isize is the same as saved. Now select the internal geometry, make it a group / component, reference the size attributes and replace the saved DCs, now swap and their sizes update

component swap 1.skp (34.8 KB)

try the first example and modify
the result should be
component swap 2 (wrapped).skp (49.9 KB)

for DCs that exist already, one may find it easier to wrap the component shell rather than altering the internal workings, hence the the “double wrap” term


#9

Awesome. Thank You! pcmoor