0 Members and 1 Guest are viewing this topic.
You don't need featurelines for a surface. You can add featurelines from polylines to a Site using lisp. I won't try to dissuade you from converting it to .NET, as that is the preferred method of working with C3D now. However, since time is critical, you may want to stick with lisp for now. If you share your code, or at least the portions that need attention, we could probably have you up & running fairly quickly.Here's a quick example of adding a featureline...no error checking, not optimized, just a quick example.Code - Auto/Visual Lisp: [Select] (setq *acad* (vlax-get-acad-object)) (setq C3D (strcat "HKEY_LOCAL_MACHINE\\" (if vlax-user-product-key (vlax-user-product-key) (vlax-product-key) ) ) C3D (vl-registry-read C3D "Release") C3D (substr C3D 1 (vl-string-search "." C3D (+ (vl-string-search "." C3D) 1) ) ) C3D (vla-getinterfaceobject *acad* (strcat "AeccXUiLand.AeccApplication." C3D) ) ) (setq ent (car (entsel)));;select a polyline; lw, 2d, or 3d (setq civdoc (vlax-get c3d 'activedocument)) (setq sites (vlax-get civdoc 'sites)) (setq site (vlax-invoke sites 'add "Grading"));;creates the Grading site, use a non-existent name for this, other wise get the correct Site (setq flines (vlax-get site 'featurelines)) (setq fline (vlax-invoke flines 'addfrompolylineex (vlax-ename->vla-object ent) "Basic"));;the Style name must exist