Quantcast
Channel: MicroStation Programming - Forum - Recent Threads
Browsing all 1677 articles
Browse latest View live

Re: [v8i C#] PointAtDistance Method

Is your question about that particular function, or more generally about the use of VBA methods in C#?

View Article


Re: [v8i C#] PointAtDistance Method

All functions from VBA can also be used in C#. Even more, C# can also use all MDL functions (not only those with __stdcall calling convention as in VBA).

View Article


Re: [v8i C#] PointAtDistance Method

Hi Jon,Yes, I am asking about that particular function.

View Article

Image may be NSFW.
Clik here to view.

Re: [v8i C#] PointAtDistance Method

Hi Prasanna,similar to Jon, I am not quite sure what you are asking for.Prasanna Katarki:The PoinAtDistance Method which is available in VBA can also be used in C#That's general information, VBA and...

View Article

Re: [v8i C#] PointAtDistance Method

Hi All..I have looked in object browser of VS 2010 for similar method and I didn't find....I have attached snap of the browser

View Article


Re: Optimized Fence Clipping (Microstation V8, MDL Language)

That is a user preference... one way to "change it" isTo turn it on:mdl keyin calculat calc userPrefsP->smartGeomFlags.optimizedFenceClip=1To turn it off: mdl keyin calculat calc...

View Article

Re: [v8i C#] PointAtDistance Method

Thanks Jan.....

View Article

Image may be NSFW.
Clik here to view.

Re: Optimized Fence Clipping (Microstation V8, MDL Language)

Daniel Christopher:Any Keyin?One way to find the keyin for a particular operation is to record a VBA macro while invoking the command, or twiddling the setting, you want to modify.The recorded macro...

View Article


Image may be NSFW.
Clik here to view.

Re: [v8i C#] PointAtDistance Method

Prasanna Katarki:I have looked in object browser … VBA HelpYou may find VBA help more useful than the Viz Studio object browser.VBA help documents each class and often provides example usage.Regards,...

View Article


Re: Optimized Fence Clipping (Microstation V8, MDL Language)

Thanks Phil and Jon,

View Article

Re: [v8i C#] PointAtDistance Method

Hi Jon..Yes, Thnaks for the suggestions...

View Article

[V8i C# Addin] Getting Area of a Fence

Is there any way in C# API to get the area of a fence that was placed? I'm wanting to place a fence (polygon shape) and then get the area. I've tried thisif (s_comApp.ActiveDesignFile.Fence.IsDefined){...

View Article

Re: [V8i C# Addin] Getting Area of a Fence

Hi,I think you can use this code (not tested):BCOM.Fence fence = s_comApp.ActiveDesignFile.Fence;BCOM.Element el = fence.CreateElement();double area = el.AsShapeElement().Area();The real code has to be...

View Article


Re: [V8i C# Addin] Getting Area of a Fence

A new thought crossed my mind after I sent the previous post ;-)The codedouble area = el.AsClosedElement().Area();should work always (but again, not tested), because if the fence exist, it's always...

View Article

Re: [V8i C# Addin] Getting Area of a Fence

Thank you very much! That worked. For convenience to the user, what I'd like to do is when they choose the option to calculate area by fence, I'd like to go ahead and set the cursor to fence placement...

View Article


Image may be NSFW.
Clik here to view.

Re: [V8i C# Addin] Getting Area of a Fence

zCane75:BCOM.ElementEnumerator ee = s_comApp.ActiveDesignFile.Fence.GetContents(false, true);That won't help you, because what it does is find those elements enclosed by the fence.  Some elements (e.g....

View Article

Image may be NSFW.
Clik here to view.

Re: [V8i C# Addin] Getting Area of a Fence

zCane75:I'd like to go ahead and set the cursor to fence placement...Queue the place fence command with SendCommand.

View Article


Re: [V8i C# Addin] Getting Area of a Fence

I'm not sure what you mean by place fence command. Here's what I've been able to find in examples online:s_comApp.CadInputQueue.SendCommand("PLACE FENCE ICON", false);But that doesn't seen to set the...

View Article

Re: [V8i C# Addin] Getting Area of a Fence

Hi,place fence icon key-in starts fence placement tool, which looks fine to me.I don't know what do you mean by "set cursor to fence selector". The fence cannot be selected, it can be placed. Can you...

View Article

Re: [V8i C# Addin] Getting Area of a Fence

I have a program that is used to compute areas. It can do this in 1 of 2 ways:1) The user selects any point within a shape and it does a boundary fill to compute the area for everything inside. That's...

View Article
Browsing all 1677 articles
Browse latest View live


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