cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 
Archicad C++ API
About Archicad add-on development using the C++ API.
SOLVED!

Splitting elements in the API

iu-tamura
Contributor

Is it possible to use the API to split an element into two parts by a line?
In other words, is it possible to automate a splitting operation that users can do manually with a splitting tool?

1 ACCEPTED SOLUTION

Accepted Solutions
Solution
Ralph Wessel
Mentor

I don't think so - these are the user editing commands supported by the API:

typedef enum {
	APIEdit_Drag					= 'DRAG',
	APIEdit_Rotate					= 'ROTZ',
	APIEdit_Mirror					= 'MIRR',
	APIEdit_Elevate					= 'ELEV',
	APIEdit_Stretch					= 'STRE',
	APIEdit_VertStretch				= 'VSTR',
	APIEdit_Resize					= 'RSIZ',
	APIEdit_General					= 'GENE',
	APIEdit_PHeightStretch			= 'PHST',					// preserved height stretch (for slanted beam / column)
	APIEdit_PDirStretch				= 'PDST'					// preserved direction stretch (for slanted beam / column)
} API_EditCmdID;

 

Ralph Wessel BArch
Software Engineer Speckle Systems

View solution in original post

1 REPLY 1
Solution
Ralph Wessel
Mentor

I don't think so - these are the user editing commands supported by the API:

typedef enum {
	APIEdit_Drag					= 'DRAG',
	APIEdit_Rotate					= 'ROTZ',
	APIEdit_Mirror					= 'MIRR',
	APIEdit_Elevate					= 'ELEV',
	APIEdit_Stretch					= 'STRE',
	APIEdit_VertStretch				= 'VSTR',
	APIEdit_Resize					= 'RSIZ',
	APIEdit_General					= 'GENE',
	APIEdit_PHeightStretch			= 'PHST',					// preserved height stretch (for slanted beam / column)
	APIEdit_PDirStretch				= 'PDST'					// preserved direction stretch (for slanted beam / column)
} API_EditCmdID;

 

Ralph Wessel BArch
Software Engineer Speckle Systems