Note-ARX object traversal DXF Method

Source: Internet
Author: User
Arx returns the DXF method of object traversal.

 

A. The traversal of DXF mainly relies on these two functions:

Get ads_name: acdbgetadsname (ads, objid)

Obtain the DXF linked list: acdbentget (ADS)

 

B. In addition, the structure of the return DXF linked list

Restype: DXF Code. For more information, see the help documentation of DXF. Commonly Used 100-Class 8-Layers

Resval: the value of the DXF code. The value belongs to the Union type. For details, see the type in the help document of DXF. For example, the value is a string when DXF = 100, and the value is a double type when DXF = 40.

 

Refer to the following code: traverse the DXF

Ads_name ads;

If (acdbgetadsname (ads, objid) = ACAD: Eok)

{

Resbuf * presbuf = acdbentget (ADS );

If (presbuf! = NULL)

{

Resbuf * pnext = presbuf;

For (; pnext! = NULL; pnext = pnext-> rbnext)

{

// DXF code value

If (pnext-> restype = 40)

{

// Query the DXF data to find the corresponding value type

Ftextheight = pnext-> resval. Rreal;

Break;

}

}

}

}

 

Owed by: spring night rain http://blog.csdn.net/chunyexiyu reprint please indicate the source

 

Note-ARX object traversal DXF Method

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.