Kean Walmsley

July 2009

Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  

Twitter Updates

    follow me on Twitter



    « Heading for the hills | Main | Driving a basic AutoCAD plot using .NET »

    September 21, 2007

    TrackBack

    TrackBack URL for this entry:
    http://www.typepad.com/services/trackback/6a00d83452464869e200e54ef7eccb8834

    Listed below are links to weblogs that reference Creating a multileader in AutoCAD using a jig from .NET:

    Comments

    Could you make a sample as the project 'BlockView' in ARX SDK using .net?

    Could you Creat a multileader in AutoCAD using a jig from 3D point to another.
    for ex (23,43,566) to (133,455,988)

    This is really two questions, IMO:

    1) Can multileaders support 3D vertices?

    I haven't tried it myself, but the function signature does accept 3D points, so I assume it's 3D-capable (rather than being planar). If it were planar, then you could still do it, as long as the plane it's on intersects both points you mentioned.

    2) Can jigs support 3D input?

    There's nothing to stop you defining a jig that understands point input from the user in 3D coordinates: the trick is to make it logical. The most logical way to accept 3D input is to project the point information in the jig into the current UCS. The "jig3d" sample on the ObjectARX SDK (under samples/graphics/jig3d) shows how to do this from C++ - it shouldn't be hard to map the technique to .NET.

    As for arbitrary 3D mouse input... this is something that is just hard to do. Applications doing things like piping come across this a lot, and often solve it by allowing movement in one of several constrained directions that can be selected by clicking on glyphs that indicate the direction you want to go in. Design Review does much the same when sectioning 3D views.

    The other option is to just enter the coordinates via the keyboard. Which may very well just work with this jig, thinking about it.

    Regards,

    Kean

    How can I retrieve the contents (i.e value) of a text entity with .net after adding the entity to a selection set.

    You can open the entity and check its text property. This post shows how to iterate through a selection set. You will simply need to check whether it's a text entity and check the relevant property.

    Kean

    Verify your Comment

    Previewing your Comment

    This is only a preview. Your comment has not yet been posted.

    Working...
    Your comment could not be posted. Error type:
    Your comment has been posted. Post another comment

    The letters and numbers you entered did not match the image. Please try again.

    As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.

    Having trouble reading this image? View an alternate.

    Working...

    Post a comment

    Feed & Share

    Search