Good day !
Found bug in versions of Sketchup 2013 and Sketchup2014.
in Sketchup 2014 when you open the "Component Options" message on the error.
If using the editor Attribute in the Directory "BEAM_SPECS" attribute "PATH" to change the value of " [Point3d(0, 0, 0), Point3d(0, 100, 0)] "
to Point3d(0, 0, 0), Point3d(0, 100, 0) " , deleting the characters "[" and "]" ,
the error message does not occur.
Posts made by goga63
-
RE: [Plugin]T2H_BuildingStructureTools2.2.4 in20141207
-
RE: Get the Name attribute ( error )
The thing is that when downloading from the Components window real component I can get the values of any attribute (and there are about 20) except for the value of the Name attribute.
-
Get the Name attribute ( error )
Explain where the error is?
I create a component (a simple cube)
And set attribute Name = test
Save the file as test.skp and close Sketchup.
Open the Sketchup file test.skp and enter in the Ruby Console code :model = Sketchup.active_model entity = model.selection[0] puts entity.get_attribute("dynamic_attributes","name","").to_s
get the name of the component test. (image1)
So far everything is fine.
Next, I save a component from the context menu "Save As"
Open a new file and load component cub from the menu Components
Again enter in the Ruby Console the same code
And get nothing. (image2)
Why when loading a component of their menu Components
code does not work ?
however , the code :Sketchup.active_model.selection[0].definition.attribute_dictionary('dynamic_attributes').each_pair { |k,v| puts k + '; ' + v.to_s }
correctly displays the name attribute of the component (among other attributes)
In the General case I need the code displays the name attribute of the component. -
Reading other directory attributes, how ?
Hi !
Is it possible in the formula attribute Dynamic Component to apply the attribute value from the other directory attributes ? For example :
in the directory 'price_attributes' is the attribute 'cost' value '25'
Can this value (25) to use in formulas attributes from the directory 'dynamic_attributes' ?
Transfer attribute 'cost' from the directory 'price_attributes' in the directory 'dynamic_attributes' is not desirable. -
RE: Name of texture
Oh, sorry my mistake...
I meant not the name of the material and the name of the texture (for example :Wood_Cherry_Original.jpg) -
Name of texture
Hi!
If the scene has several textured components.
Is there a way to display in the message, the name of the texture only the selected component ? -
RE: Bug component axes
@dave r said:
Could you share the cabinet component?
I completely redid component, and mistakes no more.
Unfortunately I have not kept this defective component. -
RE: Bug component axes
@slbaumgartner said:
Yup, I get that the angle between red and green axes in your component is about 51 degrees. Could you provide more information about the steps you used to create this situation?
I will try,though my English is poor...
I did DC Cabinet. He looked as shown on picture 1
When editing component selected green, component highlighted in red changed the form (picture 2). I could not return it to its original state and deleted.
Then I raised up and continued editing, but the situation repeated...
Then I copied this component in a separate file and post it here.
-
Bug component axes
Hi, when create a Dynamic Component encounter this error.
Local axis component now not 90 degrees.
You can check this by logging into the edit mode of the component.
-
How to open attributes ?
Good day !
On this great forum I found the code which creates a simple cubenew_comp_def = Sketchup.active_model.definitions.add("MyCube") ; points = Array.new ; points[0] = ORIGIN ; points[1] = [100, 0 , 0] ; points[2] = [100, 100, 0] ; points[3] = [0 , 100, 0] ; newface = new_comp_def.entities.add_face(points) ; newface.reverse! if newface.normal.z < 0 ; newface.pushpull(100) ; trans = Geom;;Transformation.new ; Sketchup.active_model.active_entities.add_instance(new_comp_def, trans) ;
But immediately after creation of the Cube section of the size attributes closed
screen1.
how to modify the code to section size attributes (or any other ) was opened ?
screen2
-
RE: Name of the top parent
@tt_su said:
...What is it you are making? What is the goal you are trying to achieve?
I wanna make it
-
RE: Name of the top parent
ok. I have understood it.
On image1 the way for the chosen component 5 is shown.
On image 2 the component 3 is allocated,
By means of a code I obtain the data for a component 1.any_attribute = entity.get_attribute ("dynamic_attributes", "any_attribute", 0).to_s
can I somehow temporarily make the component 1-active , will receive path, and revert to a previous state?
-
RE: Name of the top parent
How Generate Report obtains this data without being in a mode of editing of a component?
-
RE: Atributes size
Respected Den!
I feel that became the originator of attacks to you.
I did not want that it was so.
I make to you the apologies... -
RE: Atributes size
@tt_su said:
Since the user decided to deactivate that extensions I would recommend not relying on the methods it implements. You're loading parts of an extension that the user didn't want to load.
That said, the DC adds to the SketchUp API classes - personally I would like to see them part of the official API. As they are now they are unsupported.
I do not think that it so.
The user can know nothing about DC.
But it uses these SketchUp API classes when includes "Generate Report" -
Name of the top parent
Hi !
There is a component with what structure:Model
Top parent
|
parent
.
.
.
parent
|
childWhether there is a method to learn for "child" a name "Top parent"?
On an example "Generate Report" 1 column "PATH" shows a way to "child"
And if to take a name of a component 2 levels (a column "LEVEL") we learn a name "Top parent". If I have correctly understood that it is necessary to connect still a file dcclass_v1.rbs.
But what is necessary a code for reception of a name of a component 2 levels ("Top parent")?
-
RE: How to create the pulldown menu for DC
@jim said:
You have an extra space in this line:
ang_def.set_attribute 'dynamic_attributes','_test_options[highlight=#ff0000:169f3gnp]_[/highlight:169f3gnp]','&yes=yes&no=no'
Yes, thanks!
All has earned. -
RE: How to create the pulldown menu for DC
I have found a problem!
It was necessary to use a symbol " instead of ' .