Hi,
I have a symbol (cell) that I want to make dynamic. I would like to be able to draw a line with an arrow (something like place note line) and have the ability to pull the line out.
When the action is been accepted, then the cell must be placed.
Is it possible to do it with IPrimitiveCommandEvents? Is there someone who can help me with this issue?
Unknown said:Is there someone who can help me with this issue?
It depends on what does it mean "help me with this issue". It's not clear if you ask for somebody who will create the macro (which sounds like a commercial request) or need to help with a pieces of you code if a problem will appear (this community is right place for such discussions).
In MicroStation VBA help there are more examples how IPrimitiveCommand should be used available, e.g. Line Element Creation Command gives a good overview how an element can be created including dynamics. You can start with example code and to modify it to satisfy your needs.
With regards,
Jan
Bentley Accredited Developer: iTwin Platform - AssociateLabyrinth Technology | dev.notes() | cad.point
Unknown said:m_atPoints(0).x = point.x m_atPoints(0).y = point.y
Just assign the entire variable, not its components...
m_atPoints(0) = point
Unknown said:m_atPoints(1).x = point.x - 2 m_atPoints(1).y = point.y + 1
Use the API...
m_atPoints(1) = Point3dAdd (point, Point3dFromXY (1, -2))
Unknown said:CommandState.StartDynamics
Once you've started dynamics, now write code in your IPrimitiveCommandEvents_Dynamics subroutine to draw rubber bands. See VBA help and the example I previously cited.
Regards, Jon Summers LA Solutions