C# Class Canguro.Commands.Model.ImportDXFCmd

Model Command to import a Drawing Exchange Format file into the Model. Only Lines and PolyLines are supported.
Inheritance: Canguro.Commands.ModelCommand
显示文件 Open project: rforsbach/Treu-Structure

Public Methods

Method Description
Import ( string path, Canguro model ) : void

Reads a DXF file and adds all the lines defined in it to the given Model

Run ( Canguro services ) : void

Executes the command. Opens the Open File Dialog and imports the selected Drawing Wxchange Format file into the current Model.

Private Methods

Method Description
AddLine ( Canguro model, Joint ji, Joint jj, StraightFrameProps props, List newJoints, List newLines ) : void

Adds a Line Element to the given Model

Method Details

Import() public static method

Reads a DXF file and adds all the lines defined in it to the given Model
public static Import ( string path, Canguro model ) : void
path string The path to the DXF file
model Canguro The current Model object
return void

Run() public method

Executes the command. Opens the Open File Dialog and imports the selected Drawing Wxchange Format file into the current Model.
public Run ( Canguro services ) : void
services Canguro CommandServices object to interact with the system
return void