Share

acdbEntMakeX

C++

int acdbEntMakeX(
    const struct resbuf * entm, 
    ads_name result
);

File

acedads.h

Description

Makes a new object or entity (such as an empty dictionary, an xrecord, a circle, and so on), gives it a handle and entity name, but does not give it an owner (unlike acdbEntMake(), which provides an owner as well).

Warning Objects and entities without owners are not written out to DWG or DXF files. Be sure to set an owner at some point after using acdbEntMakeX(). For example, you can use acdbDictAdd() to set a dictionary to own an object.

If acdbEntMakeX() succeeds, it returns RTNORM; if it cannot update the database, it returns RTREJ. When acdbEntMakeX() fails, it sets the system variable ERRNO to a value that indicates the reason for the failure.

Parameters

Parameters Description
entm Linked list of result buffers in the same format as a list returned by acdbEntGet()

Returns

Name of the entity added to the drawing database

Was this information helpful?