I'm using a macro to insert a specific cell with CadInputQueue.SendKeyin "active cell cellname"
How can I drop this cell into it´s components immidiately after it is placed? Should I use CadInputQueue.SendCommand "DROP ELEMENT" in some way?
Hi Ole,
That doesn't seem to work. The cell is placed just like before but it's not droped.
Ingemar
Hi Ingemar
Please post your code, then it maybe easier to answer your question.
Regards Ole
Try this code in the end of your procedure:
Set oLastElem = ActiveModelReference.GraphicalElementCache.GetLastValidElement CadInputQueue.SendCommand "drop element" CadInputQueue.SendKeyin "XY=0;selview all" RedrawAllViews
Set oLastElem = ActiveModelReference.GraphicalElementCache.GetLastValidElement
CadInputQueue.SendCommand "drop element" CadInputQueue.SendKeyin "XY=0;selview all" RedrawAllViews
End Sub