| ²é¿´: 3091 | »Ø¸´: 3 | ||
sixulianyiгæ (³õÈëÎÄ̳)
|
[ÇóÖú]
ÀûÓÃLeditµÄCÓïÑԵĺê³ÌÐò»ÓàÏÒSÍäÇúÏߣ¬ÄܺÍÈí¼þÁ¬½Óµ«ÊÇ»²»³öͼ£¡£¡´úÂëÒѸ½ÉÏ ÒÑÓÐ1È˲ÎÓë
|
|
ÏëÔÚL-editÀïÃæ»ÓàÏÒSÍäÇúÏߣ¬¹ÊдÁËÒ»¸öCÓïÑԵĺê³ÌÐò£¬ÔÚLeditÀïÃæÔËÐÐÁË£¬ÄÜÓëÈí¼þÁ¬½Ó£¬ÄÜÏÔʾ¹â±ê×ø±êλÖÃÒÔ¼°µ¯³ö²ÎÊýµÄ¶Ô»°¿ò£¬µ«ÊÇ»²»³öÇúÏßͼ¡£´úÂëÈçÏÂÃæËùʾ¡£Óï¾äÉϰ´ÕÕÈí¼þµÄ˵Ã÷ÒÔ¼°×Ô´øµÄÀý×Ó¿´ÁËÒ»±éûÓдíÎó£¬ÊµÔÚÕÒ²»³öʲôÔÒò¡££¬ÇóÎÊȺÀïµÄ´óÉñÄÄÀï³ö´íÁË£¡£¡£¡ #include <stdlib.h> #include <math.h> #include <ldata.h> void SMacro ( void ) { /********************************************************************/ /* ÓàÏÒSÍä */ /********************************************************************/ double Height, Length, Width, Deltax; long P, Points_Total; double PI = 3.141592654; LPoint Points [ 1002 ]; LObject Polygon; LCell Cell_Draw = LCell_GetVisible( ); LFile File_Draw = LCell_GetFile ( Cell_Draw ); LPoint pt = LCursor_GetPosition ( ); LDialog_MsgBox( LFormat( "( %lf, %lf )", pt.x, pt.y) ); LDialogItem Dialog_Items [ 3 ] = { { "Height ", "50.0" }, {"Length ", "1500"}, { "Width ", "5.0" } }; /********************************************************************/ if(LLayer_Find (File_Draw, "Poly" == NULL){ LDialog_AlertBox("There is no Poly layer.\nMake sure Poly is in the layer map!" ;return; } if( LDialog_MultiLineInputBox ( "S Properties", Dialog_Items, 3 ) ) { Height = atof ( Dialog_Items [ 0 ].value ); Length = atof ( Dialog_Items [ 1 ].value ); Width = atof ( Dialog_Items [ 3 ].value ); return 1; } else return 0£» Deltax = 3.0; for ( P = 0; P <= Points_Total; P++ ) { Points [ P ].x = pt.x +Deltax*P; Points [ P ].y = pt.y + Height/2*(1-cos(PI*( Deltax*P )/Length)); Points [ 1002 - P ].x = Points [ P ].x ; Points [ 1002 - P ].y = Points [ P ].y +Width ; } Polygon = LPolygon_New ( Cell_Draw, LLayer_Find ( File_Draw, "Poly" ), Points, 1002 ); LCell_SetView ( Cell_Draw, LCell_GetMbb ( Cell_Draw ) ); LCell_MakeVisible ( Cell_Draw ); LCell_HomeView ( Cell_Draw ); } int UPI_Entry_Point( void ) { LMacro_Register("S", "SMacro" ;return 1; } |
» ²ÂÄãϲ»¶
±±¾©º½¿Õº½Ìì´óѧ26¼¶²©Ê¿ÕÐÉú-ÉúÎïҽѧ¹¤³Ì-ºÏ³ÉÉúÎïѧ
ÒѾÓÐ20È˻ظ´
ÎÂÖÝ´óѧÍõ¾ê¿ÎÌâ×é2026ÄêÕÐÉú
ÒѾÓÐ10È˻ظ´
½ðÊô²ÄÁÏÂÛÎÄÈóÉ«/·ÒëÔõôÊÕ·Ñ?
ÒѾÓÐ164È˻ظ´
ÎÂÖÝ´óѧ2026ÄêÕÐÉú£¨»¯Ñ§¡¢²ÄÁÏ£©
ÒѾÓÐ10È˻ظ´
ÕÐÉú¸ºÔð_ԺʿÍŶÓ_ѧÉú¸ß×ÔÓɶȳɳ¤_Éó¤Ñ§ÉúÅàÑø
ÒѾÓÐ5È˻ظ´
ÎÂÖÝ´óѧÕÐÊÕ2026ÄêÈëѧ²©Ê¿Ñо¿Éú£¨»¯Ñ§¡¢²ÄÁÏ¡¢»·¾³£©
ÒѾÓÐ10È˻ظ´
·Ç¾§ºÏ½ð
ÒѾÓÐ2È˻ظ´
ԺʿÍŶÓ-ÿ½ìѧÉú¶¼ÓÅÐã-¸ß×ÔÓɶÈ-ÍŶӷÕΧºÃ
ÒѾÓÐ0È˻ظ´
Çóµ÷¼Á
ÒѾÓÐ1È˻ظ´
»¯¹¤Ñ§Ôº£¨Ñ§ÔºÕýʽµ÷¼ÁȺ+ÁªÏµ·½Ê½£©
ÒѾÓÐ0È˻ظ´
sixulianyi
гæ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 131.5
- É¢½ð: 20
- ºì»¨: 1
- Ìû×Ó: 22
- ÔÚÏß: 7.3Сʱ
- ³æºÅ: 2429791
- ×¢²á: 2013-04-22
- רҵ: ¹â×ÓÓë¹âµç×ÓÆ÷¼þ
2Â¥2016-06-21 16:06:49
yuguofang
гæ (³õÈëÎÄ̳)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 348.4
- É¢½ð: 10
- Ìû×Ó: 41
- ÔÚÏß: 24.8Сʱ
- ³æºÅ: 6453695
- ×¢²á: 2017-05-05
- רҵ: °ëµ¼Ìåµç×ÓÆ÷¼þ
¡¾´ð°¸¡¿Ó¦Öú»ØÌû
|
ÎÒÊÔÁËһϣ¬¸Ä³ÉÕâÑù×ӾͿÉÒÔÁË if( !LDialog_MultiLineInputBox ( "S Properties", Dialog_Items, 2 ) ) return ; //{ Height = atof ( Dialog_Items [ 0 ].value ); Length = atof ( Dialog_Items [ 1 ].value ); Width = atof ( Dialog_Items [ 2].value ); // return; // } // else // return 0; |
3Â¥2021-05-18 18:12:26
ÃΤιú¶È
¾èÖú¹ó±ö (ÎÄѧ̩¶·)
- Ó¦Öú: 0 (Ó×¶ùÔ°)
- ½ð±Ò: 3337.1
- É¢½ð: 177
- ºì»¨: 2
- Ìû×Ó: 67310
- ÔÚÏß: 168.3Сʱ
- ³æºÅ: 977074
- ×¢²á: 2010-03-20
- ÐÔ±ð: GG
- רҵ: ÊýÂÛ
4Â¥2021-05-21 16:54:08













== NULL)
»Ø¸´´ËÂ¥