Ã÷¾­CADÉçÇø

 ÕÒ»ØÃÜÂë
 ×¢²á

QQ怬

Ö»ÐèÒ»²½£¬¿ìËÙ¿ªÊ¼

ËÑË÷
²é¿´: 2132|»Ø¸´: 4

[Òѽâ´ð] ¹ØÓÚ Autodesk Mechanical Áã¼þ²ÎÕÕÊôÐ﵀ Lisp дÈë

[¸´ÖÆÁ´½Ó]
·¢±íÓÚ 2013-10-30 21:58:54 | ÏÔʾȫ²¿Â¥²ã |ÔĶÁģʽ
5Ã÷¾­±Ò


¶ÁÈ¡ÊôÐÔ´úÂëÈçÏÂ:
  1. (vlax-safearray->list
  2.           (vlax-variant-value
  3.             (vlax-get-property (vlax-ename->vla-object x) 'Data)
  4.           )
  5. )


Çë°²×°ÓÐMechanical CADµÄС»ï°éÃÇÊÔÊÔ.

¸½¼þ: ÄúÐèÒª µÇ¼ ²Å¿ÉÒÔÏÂÔØ»ò²é¿´£¬Ã»ÓÐÕ˺ţ¿×¢²á
"¾õµÃºÃ£¬¾Í´òÉÍ"
»¹Ã»ÓÐÈË´òÉÍ£¬Ö§³ÖÒ»ÏÂ
 Â¥Ö÷| ·¢±íÓÚ 2013-10-31 13:03:39 | ÏÔʾȫ²¿Â¥²ã
(setq point (vlax-make-safearray vlax-vbString '(0 . 1) '(0 . 1)))
(vlax-make-variant point)
(vlax-safearray-put-element point 0 0 "DESCR")
(vlax-safearray-put-element point 0 1 value)
(vlax-put-property (*en2obj* en) 'Data point)
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

·¢±íÓÚ 2021-9-29 22:16:38 | ÏÔʾȫ²¿Â¥²ã
ÄãÕâ¸öÊÇÎÞ·¨Ð´ÈëµÄ£¬»áÌáʾÄã¡°; ´íÎó: Automation ´íÎó¡£Î´Ìṩ˵Ã÷¡£¡±£¬Ó¦ÎªÄãµÄ¶þάÊý×éûÓÐÌîдÍê³É£¬ÄãÐèÒªÖ¸¶¨¶þάÊý×éµÄ¸÷¸ö¼üÖµ¶Ô£¬Ôö¼Ó£º
(vlax-safearray-put-element point 1 0 "MATERIAL")
(vlax-safearray-put-element point 1 1 "Q235")
ÕâÑù£¬ÄãÔÙput-propertyʱ£¬²Å²»»á±¨´í£¬¶øÇÒ£¬ÄãµÄ0 0 ºÍ1 0¶ÔÓ¦µÄÖµ£¬±ØÐëÊÇÄãµÄÌØÐÔ±í´æÔÚµÄÖµ£¬·ñÔòÒ²»á±¨´í¡£
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

·¢±íÓÚ 2021-9-29 22:20:31 | ÏÔʾȫ²¿Â¥²ã
ÐèÒª°Ñ¶ÔÓ¦µÄÖµ¶ÔÓöþάÊý×鸳ֵÍêÕû£¬²¢¶ÔÓ¦ÌØÐÔ±íÖеÄÖµÓÐЧ£¬²Å²»»á±¨´í¡£
(setq point (vlax-make-safearray vlax-vbString '(0 . 1) '(0 . 1)))
(vlax-make-variant point)
(vlax-safearray-put-element point 0 0 "DESCR")
(vlax-safearray-put-element point 0 1 ¡°aa¡±)
(vlax-safearray-put-element point 1 0 "MATERIAL")
(vlax-safearray-put-element point 1 1 "Q235")
(vlax-put-property (vlax-ename->vla-object (car (entsel))) 'Data point)
ÕâÑù¾ÍÄÜÐÞ¸ÄÁË
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

·¢±íÓÚ 2021-9-29 22:31:37 | ÏÔʾȫ²¿Â¥²ã
×¢ÒâÊý×鸳ֵҪÍêÕûÇÒÓëÁã¼þÌØÐÔÖеÄÖµ¶ÔÓ¦ÉÏ£¬ÏÖÔÚÎÒµÄÎÊÌâÊÇ£¬ÄǸö¡°¿éÁã¼þ²ÎÕÕ¡±£¬ÎÒÎÞ·¨»ñÈ¡ËûµÄ¶ÔÏó£¬ÕâÑùÎÒÎÞ·¨¶ÔËû½øÐвÙ×÷¡£Óлúе°æCADµÄ£¬¿ÉÒÔÊÔһϡ£¿ÉÒÔÈ¥¿´¿´ÎÒµÄÌû×Ó£º¿éÁã¼þ²ÎÕÕµÄÊý¾ÝÈçºÎlisp¶ÁÈ¡£¬ÖØÐÂÐÞ¸ÄдÈëhttp://bbs.mjtd.com/forum.php?mo ... mp;extra=#pid898355
»Ø¸´

ʹÓõÀ¾ß ¾Ù±¨

ÄúÐèÒªµÇ¼ºó²Å¿ÉÒÔ»ØÌû µÇ¼ | ×¢²á

±¾°æ»ý·Ö¹æÔò

СºÚÎÝ|ÊÖ»ú°æ|CADÂÛ̳|CAD½Ì³Ì|CADÏÂÔØ|ÁªÏµÎÒÃÇ|¹ØÓÚÃ÷¾­|Ã÷¾­Í¨µÀ ( ÔÁICP±¸05003914ºÅ )  
©2000-2023 Ã÷¾­Í¨µÀ °æȨËùÓÐ ±¾Õ¾´úÂ룬ÔÚδȡµÃ±¾Õ¾¼°×÷ÕßÊÚȨµÄÇé¿öÏ£¬²»µÃÓÃÓÚÉÌÒµÓÃ;

GMT+8, 2024-11-23 15:04 , Processed in 0.174057 second(s), 23 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

¿ìËٻظ´ ·µ»Ø¶¥²¿ ·µ»ØÁбí