×
Menu

HPV

 
Update Drawing Data
 
There are four different commands available for updating drawing data. When new parameter is added to MagiCAD user interface or script command, a new command is created. This ensures that old scripts can be run with new versions of MagiCAD.
 
-MAGIUPD, -MAGIUPD2, -MAGIUPD3, -MAGIUPD4
Parameter
Possible values
-MAGIUPD
-MAGIDUP2
-MAGIDUP3
-MAGIDUP4
[Device symbols (0/1)]:
0/1
x
x
x
x
[Running indexes (0/1)]:
0/1
x
x
x
x
[Product variables (0/1)]:
0/1
x
x
x
x
[National code (0/1)]:
0/1
x
x
x
x
[Room info (0/1)]:
0/1
x
x
x
x
[Object ID format (0/1)]:
0/1
x
x
x
x
[Color, line type, and line weight settings of the object (0/1)] :
0/1
x
x
x
x
[Colors, line types, and line weights (0/1)]:
0/1
x
x
x
x
[Integrated reductions (0/1)]:
0/1
 
x
x
x
[Update fittings (0/1)]:
0/1
 
x
x
x
[Update flanges (0/1)]:
0/1
 
x
x
x
[Update void owners (0/1)]:
0/1
 
x
x
x
[Update hyperlinks (0/1)]:
0/1
 
x
x
x
[Update actuator symbols (0/1)]:
0/1
 
x
x
x
[Update insulation info (0/1)]:
0/1
 
 
x
x
[Fix symbol hiding (0/1)]:
0/1
 
 
 
x
 
Example command (-MAGIUPD4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1)
 
Explode
 
This command will explode all the MagiCAD objects in the current drawing to AutoCAD blocks or primitive parts.
Note! After running the command current drawing cannot be modified with MagiCAD, consider renaming the file before  running the explode command.
 
magiexplodescript
Parameter
Possible values
[Line specific layers (Yes/No)]:
Y/N
[Set z to zero (Yes/No)]:
Y/N
 
Line specific layers mean that AutoCAD objects are either set to separate layers based on the Default settings in the project (parameter value “Y”), or are kept in the layer specified in the layer settings (parameter value “N”).
 
 
Line specific layers = N
Line specific layers = Y
Line specific layers = Y
 
Set z to zero means that all the objects are placed to the z-coordinate zero in the world coordinate system (WCS).
 
Example command: ( magiexplodescript N N )
 
Show all / Unisolate
 
This script command resets the Isolate Parts and makes all the MagiCAD objects in the drawing visible.
 
 
_MAGIUCL
 
This command has no parameters.
 
Change duct/pipe presentation
 
This script command can be used for changing presentation mode for the duct/pipes.
 
MAGICHVM or MAGICHANGEVIEWMODE
Parameter
Possible values
[Search main viewport]:
On/Off
[Select mode]:
P/D (P=Pipes, D=ducts)
[Select view mode]:
1D/2D/2D_2D/2D_3D/3D
 
Search main viewport:
 
If in the active viewports settings “Follow main viewport” is checked, then
Search main viewport = Off  Settings will not be changed
Search main viewport = On  Main viewport is activated and main viewports settings are changed.
 
 
Select mode / select view mode:
 
Some example commands
 
(MAGICHANGEVIEWMODE On D 3D)  Presentation of the ducts is changed to 3D
(MAGICHANGEVIEWMODE On P 2D_3D)  Presentation of pipes changed to 2D and valves, components etc. are shown as 3D geometry.
(MAGICHANGEVIEWMODE On P 2D_2D)  Presentation of pipes changed to 2D and valves, components etc. are shown as symbols.
 
Change duct/pipe presentation
 
This command has replaced the command MAGICHVM or MAGICHANGEVIEWMODE and can be used for changing the presentation mode for the duct/pipes.
The old command still remains because of the compatibility reasons.
 
 
-MAGIVPO or -MAGIHPVVPORTOPTIONS
Parameter
Possible values
[Select viewport to change]:
1 - Current
2 - Main
3 - Default
[Ducts - Presentation]:
1 - 1D
2 - 2D
3 - 3D
[Pipes - presentation]:
1 - 1D
2 - 2D
3 - 3D
[Ducts - 1D/2D presentation]
1 - Use symbols for air devices (in top view)
2 - Use 3D geometry for air devices
[Pipes - 2D presentation]
1 - Use symbols for valves and other pipe components in 2D
2 - Use 3D geometry for valves and other pipe components in 2D
[Ducts - Insulation mode]
1 - Show duct only
2 - Show outer line only
3 - Show all lines
[Pipes - Insulation mode]
1 - Insulation invisible
2 - Pipe invisible
3 - Draw both
Ducts - Hidden linetype
1 - Dashed
2 - Invisible
Pipes - Hidden linetype
1 - Dashed
2 - Invisible
Ducts - Invisible before hidden (mm)
 
Pipes - Invisible before hidden (mm)
 
Ducts - Minimum length of line (mm
 
Pipes - Minimum length of line (mm
 
Hide this viewport when saving
1 - Hide
0 - Show
No self hide during saving
1 - No self hide
0 - Hide
Draw open ends arrow
1 - Draw
0 - Do not draw
Draw storey rectangle
1 - Draw
0 - Do not draw
Show section mark boundary
1 - Show
0 - Do not draw
Show sprinkler design area
1 - Show
0 - Do not draw
 
Section Update
 
Command updates all the sections in the current drawing.
 
 
-MAGISU or -MAGISECTIONUPDATE
Parameter
Possible values
Select section to update [All]:
A
[Text fields Y/N]:
Y/N
[Dimension texts Y/N]:
Y/N
[Size and positions Y/N]:
Y/N
Example: (-MAGISU A Y Y Y )
 
Fix errors in ductwork
 
Command fixes “corrupted" network. Removes unplugged components as well as unreferenced dimension texts and accessories. Fixes unplugged segments. Dimension connectors.
 
MAGICHK
 
This command has no parameters.