çµèç³»ç»ãå¸è½½ææ´æ¹ç¨åºãï¼ç¹å»AutoCADï¼æ·»å åè½ãExpress Toolsãã
(setq ss1 (acet-geom-intersectwith ent1 ent2 0));åå¾ä¸¤ä¸ªå¯¹è±¡äº¤ç¹éåï¼å¦æ没æ交ç¹nilã
è¿ä¸ªæ¯valè¿ç§å½æ°åï¼æ¯ä¸æ¯è¦å¯¹è±¡è½¬æ¢ï¼è¿æ¯ç´æ¥ç¨
追ç对象ä¸ç¨è½¬æ¢ï¼ç´æ¥ä½¿ç¨ã
æ¯Express Toolséé¢çå½æ°ã
ä¸å¯¹å¦ï¼ä½ ç»çç æ¯è¿ä¹ç¨å
(setq dx1 (ssget));éæ©ä¸¤ä¸ªä»¥ä¸å¯¹è±¡
(setq ent1 (ssname dx1 0));åå¾ä¸ä¸ªå¯¹è±¡
(setq ent2 (ssname dx1 1));åå¾ç¬¬äºä¸ªå¯¹è±¡
(setq ss1 (acet-geom-intersectwith ent1 ent2 0));åå¾ä¸¤ä¸ªå¯¹è±¡äº¤ç¹éåï¼å¦æ没æ交ç¹nilã
åæ¶è¦æ·»å åè½Toolsæå¯ä»¥è¿è¡ã
æåè¯è¯
追çå¾å ä¸éæ©éæ ¹æ¬ä¸åï¼æ³¨æå½æ°ç使ç¨ã
追é®è¿æ¯ä¸è¡
追çssnameä¸æ¯ssnanmeï¼æ³¨æå½æ°åç对ä¸å¯¹ã
追é®ssnameä¸æ¯ssnanme è¿ä¸ªæåç° æ¹äºä½ç¶åæ示no function definition: ACET-GEOM-INTERSECTWITH express toolsé½å®è£ è¿äº
追çæäºAutoCADçæ¬æ æ³å®è£ Toolsï¼å¦ãAutoCAD2014çæ¬æ æ³å®è£ ãã
没æåæ³äºï¼ç¨ä»¥ä¸æ¹æ³æ£æ¥äº¤ç¹ï¼
(setq e1 (vlax-ename->vla-object(car(entsel)))