Quote Originally Posted by mhy3sx. View Post
I create a new drawing without any block inside. I want this code to work in every drawing . If the drawing have the point block inside to have the option to insert the block by point number , if there is not a point block then insert the deh block by picking point. That's why i ask to have an optiion

Insert point ? [point / number]

if pick point -> then pick point (multy times)

if pick number -> give point number (multy times)

In your code is all together

Thanks
The prompt to " Specify point to insert the block:" accepts a picked point or a number. The picked point is provided by the user. If the user wants to do a number or string found in the POINT attribute of the POINT block, the user can enter that value at the prompt. However, the value to search must not contain a space as this code makes no effort for that type of data.

You will need to verify the DEH block is either inserted into the drawing or is available to be found within the Support Files Search Path as listed in the Files tab of the Options dialog.