OK, so no takers on that one...
When I export the csv file with all the components in it, I see that Sketchup has put a unique number against each one e.g. Model/Wall Panel #1 etc. This column in the CSV is called Path. Any idea if this value can be accessed as a property of the component?
Thanks
Posts
-
RE: Auto-incrementing ID property in a DC
-
Auto-incrementing ID property in a DC
Hi,
I've got a dynamic component that models a modular building unit. You copy it around the model and change some of its properties to create slightly different versions of the component doing different jobs as you go. One thing I haven't been able to do is make each instance of the DC assign itself a sequential unique identifier. I am currently using a concatenation of its position to make a long number, but a 1,2,3... sequence would be preferable. Any ideas on how to do this?
Thanks -
RE: Display component custom attribute in model
Quick test reveals that this is a feasible approach. I'm a little worried by the exponential increase in the number of components in the model, but I'll have to test and see whether that kills the performance.
I'll put up the sample when its working.
-
RE: Display component custom attribute in model
Apologies for the stream-of-consciousness posts - but is there some way to make an auto-incrementing identifier as a custom property of a dynamic component instance? I was using a complex identifier made up of the z-x-y co-ordinates in inches, but this produces 11 digits where probably 3 would do. The corresponding complexity of the 'digital clock' display becomes problematic.
-
RE: Display component custom attribute in model
Ha! Thanks for that suggestion - so crazy it just might work! I was hoping that there may be a ruby toolkit that could do it in a programmatic way.
-
Display component custom attribute in model
Hi,
I have created a dynamic component that models a type of SIP panel for construction. When creating output I'd like to show sections of the model with each instance of the component displaying its unique identifier. The unique identifier is set by using a formula within the dynamic component. Is there anyway to display a component attribute in text on the component in the model?
Thanks in advance! -
RE: Printing text for dynamic component attribute.
This thread seems to deal with the same issue (amongst other things):
http://forums.sketchucation.com/viewtopic.php?f=15&t=14353&p=108605
It seems not, which is annoying. I'm going to see if Layout can do something for me.
-
RE: DC "jumping" when moved/rotated
Did anyone have any idea about this issue, I've got the same problem.
-
RE: Dynamic Wall Component
The value of LenX which is returned is in inches, even when the model is in centimetres. So you need to compare with LenX * 2.54 e.g.:
=NEAREST(CURRENT("LenX")*2.54,350,450,820,900)