Create a style from an item
#set #create #ID ElementID [#dialog|#name ...... #enter]
The command asks a new style name with popup dialog calling(#dialog) or from command parameter. In case of ask from parameters it needs to close the command with #enter keyword.
Examples:
create a style with dialog calling
#set #create #ID ElementID #dialog
create a style called "NewSet" into the project locally
#set #create #ID ElementID #name "NewSet" #enter
create a style called "NewSet" into the global styles called MY
#set #create #ID ElementID #name "NewSet" #global #enter
create a style called "Folder\NewSet" into the project
#set #create #ID ElementID #name "NewSet" #folder "Folder" #enter
create a style called "Folder\Other\NewSet" into the project locally
#set #create #ID ElementID #name "NewSet" #folder "Folder" #subfolder "Other" #enter
create a style called "Folder\NewSet" into the global sets called MY
#set #create #ID ElementID #name "NewSet" #folder "Folder" #global #enter
create a style called "Folder\Other\NewSet" into the global styles called MY
#set #create #ID ElementID #name "NewSet" #folder "Folder" #subfolder "Other" #global #enter
Example:
create a style called "NewSet" into the project locally
#set #create #ID 1292 #name "NewSet" #enter
Creating a style by cloning another style
The command duplicates an existing style with the specified new name. The properties of the new style can be customized with additional commands.
#set #create #name "TypeOfElement" "ExistingSetnameOrGUID" #name "NewSet" #enter
Example:
1. Create a new wall style called "NewSet" based on "1 layered 30 wide wall"
#set #create #name "wall" "1 layered 30 wide wall" #name "NewSet" #enter
2. Create a new wall style called "NewSet" based on "1 layered 30 wide wall" - using the GUID of source set that is "0B_SdlNVvFP9EaFBfuRTRQ"
#set #create #name "wall" "0B_SdlNVvFP9EaFBfuRTRQ" #name "NewSet" #enter
Note:
If the style with the new name exists, the command overwrites the existing style.
Commands to modify the new style properties before it is created
You can add some additional property definition commands like #parameter and #layer, etc.
The #parameter command is the same as described in Manage BIM parameters for a drawing element
The #layer command has the following properties:
#name: the name of the layer
#material: the material name or id of the layer
#thickness: the thickness of the layer
#bottom: the bottom of the layer
#height: the height of the layer
#import: the priority of the layer
#visible: the layer is visible in 3D
Examples:
1. Add a new layer to an existing wall set
#set #modify #name "wall" "NewSet" #modify #layer #add #name "Insulation" #bottom "-40.0" #height "2700" #thickness "120" #material "Thermal Insulation 01" #enter
2. Add a new BIM parameter to an existing set
"PropertyName" [#extratext "description"] "Type of parameter" "Value of parameter" #enter
#set #modify #name "wall" "NewSet" #modify #parameter #add "Thermal parameters" "Conductivity" "IfcText" "0.7" #enter
Modify a style
#set #modify #name "TypeOfElement" "SourceSetnameOrID" #modify ....... #enter
After the second #modify keyword, the command structure is the same as described in previous section.
Example:
#set #modify #name "wall" "1 layered 38 wide wall" #modify #layer #add #name "next_layer" #thickness "100"
#set #modify #name "wall" "1 layered 38 wide wall" #modify #layer #add #name "Tamas layer" #thickness "100" #material "Glass26" #next #parameter #add "Tamas" "Status" "IfcText" "Not finished yet" #enter
List of styles by type
#set #list #name "TypeOfElement" #enter
The result:
<CALSetDataList>
<items Count="51">
<Item Name="1 layered 08 wide wall" ID="0B_SdlNVvFP9EaFBfuRTRQ"/>
<Item Name="1 layered 30 wide wall" ID="0SM27u7zT7i9CbZUAKKXsM"/>
.
.
.
<Item Name="Composite\Stonework insulated wall" ID="3$EmviA49E7h5Uj15mtOzk"/>
</items>
</CALSetDataList>
Update items by style
#set #update #name "item type" "SetName"
//- refresh all walls with name "SetName" to actial set parameters
#set #update #name "wall" "OldSetName" #replace "NewSetName"
//- replace all walls with name "OldSetName" to "NewSetName"
Comments
0 comments
Article is closed for comments.