• Rotating and Moving Elements with VBA

    Jon Summers
    Jon Summers
    I've posted some articles about using matrices and transforms with MicroStation VBA to rotate or move (translate) a DGN element. The articles explain the purpose and use of Matrix3d and Transform3d , and how to apply them to an element.
    • http://www.la-solutions.co.uk/content/connect/mvba/MVBA-Matrices.htm
    • View
    • Hide
    • over 1 year ago
    • MicroStation Programming
    • MicroStation Programming Blog
  • RE: How to get rotation around axis?

    Jon Summers
    Jon Summers
    Unknown said: I have got the following details: slope angle angle of the slant edge width of the roof width, length, height of the beam When dealing with 3D geometry, work with vectors, transformations and matrices. MicroStation VBA…
    • over 6 years ago
    • MicroStation Programming
    • MicroStation Programming Forum
  • Re: move/copy line parallely in vba

    Jon Summers
    Jon Summers
    Find the direction of the line — the vector from start point to end point Calculate the perpendicular of the direction — rotate the vector by π/2 Create a transformation matrix ( Transform3d ) Apply the perpendicular rotation to the transformation…
    • over 13 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8 2004 Edition Programming Forum
  • Re: Applying a 3D rotation to a cell

    Jon Summers
    Jon Summers
    Something like … Dim origin As Point3d origin = oElement.Origin Dim offset As Point3d offset = Point3dSubtract (Point3dZero, origin) oElement.Move offset ... do rotation oElement.Move origin oElement.Rewrite You haven't told us how you…
    • over 12 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i VBA Forum
  • Re: Reference File to Master Transform

    Jon Summers
    Jon Summers
    mrmojo: The user will go into the ref file, snap to the coordinates that surround a text string and write them down. Aren't those coordinates in master file units? mrmojo: The ref is rotated, scaled and moved therefore I have…
    • over 13 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i VBA Forum
  • Re: modify reference elements one by one

    Jon Summers
    Jon Summers
    cenber said: td.Y = a0 + a1 * onc.Y + b1 * onc.X td.X = b0 + b2 * onc.Y + a2 * onc.X It looks like you're attempting to transform elements. Why write your own transforms when MicroStation VBA provides an extensive API for object manipulation in 3D…
    • over 11 years ago
    • MicroStation Programming
    • [Archived] MicroStation V8i VBA Forum