Quantcast
Channel: MicroStation Programming Forum - Recent Threads
Viewing all articles
Browse latest Browse all 7260

[MicroStation 2023 23.00.02.071 C#] Question about MDL vs. C#

$
0
0

Hi,
I am currently working on creating an addin in C#. As a basis I want to use the logic of an old MDL source code from a colleague.
This MDL is only executable in Microstation V8i. However, we now need a successor in C# for MicroStation 2023.
I have already been able to successfully transfer some things here.
But now I'm at a point where pure MDL methods are used.

Private void blockUpdateCurrentTransformation(int view)
{
    /* Install matrix */
    mdlCurrTrans_identity();

    /* update current transformation with view rotation */
    mdlCurrTrans_rotateByView(view);
    
    /* Set the origin of the new coordinate system to the 1st point of the block */
    mdlCurrTrans_translateOriginWorld(&point1);
    
    /* rotate current transformation by active angle */
    mdlCurrTrans_rotateByAngles (fc_zero, fc_zero, rotationangle);
}

How could I now do the whole thing in C#?
Is this even possible in C#? I haven't found anything yet.

Regards
Frank


Viewing all articles
Browse latest Browse all 7260

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>