Parametric entities
-
I am thinking of learning how to use parametric entities, but I would like to see if anyone else has used them, and if they like or dislike using them. Right now, I am using classes to group attributes, so it hopefully won't be that big of a leap.
-
Chris, do you mean Dynamic Components?
-
Possibly. From what I can see, parametric entities can be created with either version, but I don't know much about them.
-
There isn't anything called parametric entities in SU. But as Jim mentioned, you got Dynamic Components. They can only be created with Pro - but used by both.
Not sure what you mean by using classes to group attributes though... -
You CAN make 'parametric entities' with a script - there is a sample script that makes parametric shapes like cones and boxes etc that's downloadable from the Sketchup Script page... There's a special 'parametric.rb' that helps. You add the shape using a dialog for its parameters. When you have made a shape you can later select it and get a context-menu to edit its properties - then the dialog lets you change its parameters... Fairly basic BUT the start of a parametric entity script without the dynamic-component complications...
-
@tig said:
You CAN make 'parametric entities' with a script - there is a sample script that makes parametric shapes like cones and boxes etc that's downloadable from the Sketchup Script page... There's a special 'parametric.rb' that helps.
That was what I was referring to. perhaps I wasn't using the right terminology.
Have you used the parametric.rb script before? What I am really interested in is the pros and cons of using it, and whether anyone has tips regarding it. -
@thomthom said:
Not sure what you mean by using classes to group attributes though...
Basically, what I am trying to accomplish is to reference a group of entities in the code by what it actually is, for example, car, boat, etc. By doing this, I should be able to greatly simplify the code by saying boat.height or car.door.length. Like TIG said, It would also allow users to change those attributes through a dialog.
-
There is a plugin ,driving dimensions ,maybe its a start towards what you are looking for.
http://drivingdimensions.com/SketchUp/faq.php
Bep
Advertisement