Selecting and using pedit

Discussion in 'AutoCAD' started by cmedinag, Apr 4, 2005.

  1. cmedinag

    cmedinag Guest

    Hi, i want to select different entities in square (the entities are all connected) and then join them into a polylyne using pedit/multiple/join... how do i manage to use the selected items for pedit?
    thks!
     
    cmedinag, Apr 4, 2005
    #1
  2. Paul Richardson, Apr 4, 2005
    #2
  3. Public Function pPlineJoin(vrLines) As AcadLWPolyline
    should be (ByVal vrLines) since I don't want to
    change my lines. Leave as is if you plan to delete in the
    function. Or add ByRef explicitly.
     
    Paul Richardson, Apr 4, 2005
    #3
  4. cmedinag

    cmedinag Guest

    thanks for the help, now the thing is, im using not only lines, im using all kinds of entities, mostly arcs. I have already a function that joins the lines, but only if they are polylines... i need to do it with all kind of entities because i always get the error type missmatch... thats why i thinked about the pedit with multiple.... cuase the other way i will always need to use polylines right?
     
    cmedinag, Apr 5, 2005
    #4
  5. For each obj in yourselset 'or whatever
    If typeof obj is AcadLWPolyline Then
    do this stuff 'or call this function
    Elseif typeof of is...
    do this stuff
    Else: do other.
    End if
    Next obj

    Or use a Case Structure..

    Select Case TypeOf obj
    Case AcadLWPolyline
    do
    Case....
    do
    Else: do other.
    End Select
     
    Paul Richardson, Apr 5, 2005
    #5
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.