INSERT COMMAND

INSERT COMMAND

Anonymous
Not applicable
378 Views
1 Reply
Message 1 of 2

INSERT COMMAND

Anonymous
Not applicable
I want to make a dialog box that can be used to insert blocks into a drawing
does anyone have any pointers. i would like to put bitmaps on the insert
buttons. and use the acedCommand (but I;m not sure how to use the inset
command) I really have not been able to find alot on it in the help files
0 Likes
379 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Hello Rich,

I have some keywords:
you should see to the objectarx examples.
With MFC you can simply create dialogs (See objectarx/samples/MFCSamps/modal for a modal dialog box).
With class AcDbBlockReference you can create block refs.
You have to set the properties and add it to the wished blocktable, simply to the model space.

You can also insert blockrefs with acedCommand, but the objectarx class are more near to acad and quicker.
Anyway a little piece of code:
iRet = acedCcommand( RTSTR, _T("_-block"),
RTSTR, (LPCTSTR)strBlkName,
RTSTR, _T("_y"),
RTSTR, _T("0,0,0"), /* or your insertion point */
RTPICKS, ss, /* a selection set */
RTSTR, _T(""),
RTNONE);


Good luck

Jens Arnold


"Rich" schrieb im Newsbeitrag news:[email protected]...
> I want to make a dialog box that can be used to insert blocks into a drawing
> does anyone have any pointers. i would like to put bitmaps on the insert
> buttons. and use the acedCommand (but I;m not sure how to use the inset
> command) I really have not been able to find alot on it in the help files
>
>
0 Likes