Automate mesh to solid conversion with AutoLISP
How to automate mesh to solid conversion with AutoLISP step by step tutorial.
- Reset CMDDIA system variable to disable command dialog boxes:
(command "CMDDIA" 0)
- Execute mesh to solid command with the given command line parameters:
(command "AMCONVERTMESH" (entlast) "" "Face" "None" "No" "No" "No")
- To import mesh file with AutoLISP automation script use the code below:
(command "AMIMPORTMESH" "C:\\work\\mesh.obj" "polyfacemesh")
- To export 3D model to a mesh file format with AutoLISP command:
(command "AMEXPORTMESH" (entlast) "" "C:\\work\\solid.skp")
- To enable dialog boxes for mesh to solid conversion command revert CMDDIA change:
(command "CMDDIA" 1)