Results 1 to 4 of 4

Thread: auto lisp to vba

  1. #1
    Member
    Join Date
    2018-02
    Posts
    2
    Login to Give a bone
    0

    Default auto lisp to vba

    lisp (setq sset (ssget))
    vba Dim sset as AcadSelectionSet
    sset=AutoCAD.Application.ActiveDocument.SelectionSets
    sset.SelectOnScreen

    lisp (setq ctr 0)
    vba Dim ctr as long
    ctr=0

    How convert this lisp to vba??

    ;extract the entity name
    lisp (setq item (ssname sset ctr))
    vba ???????????..........

  2. #2
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    560
    Login to Give a bone
    0

    Default Re: auto lisp to vba

    this may be helpfull
    vba Dim ctr as Integer

    Set SS = ThisDrawing.SelectionSets.Add("pit1sel")
    SS.Select acSelectionSetAll, , , FilterDXFCode, FilterDXFVal

    For Cntr = 0 To SS.Count - 1
    If SS.Item(Cntr).Name = Blkname Then

  3. #3
    Member
    Join Date
    2018-02
    Posts
    2
    Login to Give a bone
    0

    Default Re: auto lisp to vba

    Thanks For your reply sir

    UCScreenshot20180219124234.png
    how we can use this function in pic.?



    Dim en1 As AcadSection
    en1 = AutoCAD.Application.ActiveDocument.SelectionSets.Name(est).Item(cntr

  4. #4
    All AUGI, all the time
    Join Date
    2003-07
    Posts
    560
    Login to Give a bone
    0

    Default Re: auto lisp to vba

    You need to explain more what it is your trying to do. i suggested a way to make a selection set with a known name and look at each item in the set. What do you want to do then ?

Similar Threads

  1. AUTO LISP
    By M.Jamal Khan in forum AutoLISP
    Replies: 3
    Last Post: 2020-04-30, 08:47 PM
  2. Auto Lisp
    By MarkLyon in forum CAD Management - General
    Replies: 5
    Last Post: 2011-02-16, 03:46 PM
  3. Auto-lisp SOS!
    By praveendevdass in forum AutoLISP
    Replies: 2
    Last Post: 2010-01-14, 07:50 AM
  4. Auto lisp, and TPNAVIGATE
    By ederson_ambrosio in forum AutoLISP
    Replies: 0
    Last Post: 2009-04-05, 02:10 AM
  5. NEW AUTO LISP
    By rstiles in forum AutoLISP
    Replies: 5
    Last Post: 2005-11-30, 10:27 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •