#ADS_ENTMAKE and BLOCKS
2 messages in this thread
Help! I am a ADS developer on the sun. I am experiencing a wiedr
condition when I create a block in autocad.
1. I call ads_entmake with a "BLOCK" entity list with 70 code 0.
2. I call entmake with the enity lists of the entities that I want to
store
in the blk-XX block.
3. I call entmake with "ENDBLK" entity list. This returns me a
KTXXxxxxxx
RTKYWRD error instead of RTNORM. Why ?? When I try to insert the
block it works fine excprt when I am inserting right
after the creation of a polyline. If I insert the block after a polyline
creation the last vertex of the polylin gets deleted unti, l the next
regen. When I try to ads_entmod the block it returnes RTREJ and ERRNO has
the value 32 (callXXXX cannot modify seqend ????). Thanks for any help,
please excuse the misspellings as the backspae key, compuserve and procomm
are not interacting properly.
Lynn – RTKWORD isn't an error; it's an exception case, but not necessarily
an error. When you use ads_entmake() to finish a Block Definition by
supplying an ENDBLK entity, the RTKWORD status is returned so that you can
use ads_getinput() to retrieve the Block's name. This isn't important for
ordinary Blocks, but it becomes important if you're creating "anonymous"
Blocks; this is the only way you'll determine what "name" to use when
creating Inserts of that Block.
On the Insert/Polyline… are you also creating the Polyline with
ads_entmake()? Have you successfully created the Seqend before going on to
the Insert? If so, you may have found a bug; I don't recall problems
having been reported in this area…