دستور XDATA یک دستور Express Tool در اتوکد می باشد. با استفاده از این دستور می توان یک سری از اطلاعات را با نوع های مختلف (مانند عدد صحیح، عدد حقیقی، موقعیت و …) داخل یک شیئ کار گذاشت. ابتدا با اجرای این دستور از شما شیئ مورد نظر را می خواهد سپس از شما می خواهد یک نام به دلخواه وارد کنید در نهایت چندین فرمان ظاهر می شود که می توان با اجرای هر یک از آن ها اطلاعاتی را داخل شیئ قرار داد.
[۳Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/eXit] <eXit>:
مثلا با تایپ حرف P و زدن اینتر می توانید یک نقطه به آن معرفی کنید (هر کدام از فرمان ها را می توانید تایپ کنید و متناسب با ان اطلاعات بدهید).
Attaches extended object data (xdata) to a selected object.
You can view the xdata attached to objects with the XDLIST Express Tool.
Command: XDATA
Select object: Use an object selection method
Application name: Specify an application name for the xdata
[۳Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/eXit] <eXit: Enter an option
Application name | An ASCII string up to 255 bytes long (group code 1000). |
Layer | A layer name (group code 1003). |
Hand | An object handle (group code 1005). |
۳Real | ۳ real numbers (group code 1010). |
Pos | A 3D World space position (group code 1011). |
Disp | A 3D World space displacement (group code 1012). |
Dir | A 3D World space direction (group code 1013). |
Real | A real number (group code 1040). |
Dist | A distance (group code 1041). |
Scale | A scale factor (group code 1042). |
Int | A 16-bit integer (group code 1070). |
Long | A 32-bit signed long integer (group code 1071). |
This example attaches piping data to a line object.
Select object/<None: Select a line
Enter Application name: Enter Myapp555-1212
MYAPP555-1212 new application.
۳Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/<eXit: Enter the ST option
ASCII string: Enter Sewer
۳Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/<eXit: Enter the I option
۱۶-bit integer: Enter 4
۳Real/DIR/DISP/DIST/Hand/Int/LAyer/LOng/Pos/Real/SCale/STr/<eXit: Press Enter
The xdata is attached to the line.
xdata.lsp
بنده سیامک دوستداری فارغ التحصیل رشته مکانیک سنگ از دانشگاه صنعتی اصفهان هستم، و در این وبسایت آموزش های مربوط به نحوه برنامه نویسی در اتوکد و هچنین آموزش تصویری دستورات اتوکد را قرار خواهم داد.
تلفن همراه: ۰۹۰۰۱۲۳۴۴۴۴
ایمیل: s.doostdari@gmail.com