Summary for: dxfreader < handle

Class summary

dxfreader Low-functionality dxf reader.

Usage reader = dxfreader(dxf_file_name);

Properties

.dxfreader/arcs is a property.

.dxfreader/fid is a property.

.dxfreader/lines is a property.

.dxfreader/point_coordinates is a property.

.dxfreader/point_counter is a property.

Methods

Class methods are listed below. Inherited methods are not included.

.dxfreader/add_arc is a function.

add_arc(this, xstart, ystart, xcenter, ycenter, xend, yend)

.dxfreader/add_arc_angledeg_syntax is a function.

add_arc_angledeg_syntax(this, xcenter, ycenter, radius, astart, aend)

ADD_LINE(‘SYS’,’OPORT’,’IPORT’) adds a straight line to a system from the specified block output port ‘OPORT’ to the specified block input port ‘IPORT’. ‘OPORT’ and ‘IPORT’ are strings consisting of a block name and a port identifier in the form ‘block/port’. Most block ports are identified by numbering the ports from top to bottom or from left to right, such as ‘Gain/1’ or ‘Sum/2’. Enable, Trigger, State and Ifaction ports are identified by name, such as ‘subsystem_name/Enable’, ‘Integrator/State’ or ‘subsystem_name/Ifaction’.

ADD_LINE(‘SYS’,POINTS) adds a segmented line to a system. Each row of the POINTS array specifies the x and y coordinates of a point on a line segment. The origin is the top left corner of the window. The signal flows from the point defined in the first row to the point defined in the last row. If the start of the new line is close to the output of an existing line or block, a connection is made. Likewise, if the end of the line is close to an existing input, a connection is made.

ADD_LINE(‘SYS’,’OPORT’,’IPORT’, ‘AUTOROUTING’,’ON’) works like ADD_LINE(‘SYS’,’OPORT’,’IPORT’) except it routes the line around any intervening blocks. default is ‘off’

Examples:

add_line(‘mymodel’,’Sine Wave/1’,’Mux/1’)

adds a line to the mymodel system connecting the output of the Sine Wave block to the first input of the Mux block.

add_line(‘mymodel’,’Sine Wave/1’,’Mux/1’,’autorouting’,’on’)

adds a line to the mymodel system connecting the output of the Sine Wave block to the first input of the Mux block and routes the line around any intervening blocks

add_line(‘mymodel’,[20 55; 40 10; 60 60])

adds a line to the mymodel system extending from (20,55) to (40,10) to (60,60).

See also DELETE_LINE.

.dxfreader Low-functionality dxf reader.

Usage reader = dxfreader(dxf_file_name); Documentation for dxfreader/dxfreader doc dxfreader

.getting unique points

.dxfreader/plot_curves is a function.

plot_curves(this, varargin)

.read file and plot