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 parameters:
#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
3. Create a new wall set, add a 2 new layers and deletes the first one
#set #create #name #wall "1 layered 30 wide wall" #name "solid - color 3"
#modify
#layer #add #name "Tamas layer1" #bottom "150.0" #height "2100" #thickness "1001" #material "Glass26" #bhatch #solid #color 2 #enter
#next
#layer #add #name "Tamas layer2" #bottom "TS 10.0" #height "(1) BS -20.0" #thickness "801" #material "Glass26" #bhatch #solid #color 3 #enter
#next
#layer #delete #selindex 0
#enter
The #bottom and #height parameter can be a direct value as 150.0 which means 150mm, but can be a parametrized one as (1) BS -20.0.
The paramtized format is the following:
(s) b o
s: relative storey from the current (optional, the defaukt is the current story)
b: bound to this part of level
o: offset to the bound
List of bounds:
FH - FloorHeight
FF - Finish Floor
TS - Top of Structure
BS - Bottom of Structure
CE - Ceiling
LE - Ledge
LI - Level Increment
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
Copy project style to global
#set #copy #name "TypeOfElement" "SourceSetnameOrID"
This command creates a copy of a project style into the global environment.
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.