See the top rated post in this thread. Click here

Results 1 to 4 of 4

Thread: Override table cell border property using visual lisp

  1. #1
    Member
    Join Date
    2015-01
    Posts
    47
    Login to Give a bone
    0

    Default Override table cell border property using visual lisp

    I'm looking for a vla method I can use on a selected table cell to override the border property, specifically to add a line at the the top of cell.

    I'm assuming it would be a variation on vla-put___ but I can't guess the property name to complete the method, and apparently nobody with access to the internet has ever wanted to override a table cell's border properties before. I'd sure appreciate a helping hand here.

  2. #2
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,114
    Login to Give a bone
    0

    Default Re: Override table cell border property using visual lisp

    From AutoCAD ActiveX Reference Guide

    Code:
    VBA: 
    
    object.SetCellGridVisibility row, col, edges, bValueobject 
    Type: Table 
    
    The object this method applies to. 
    
    row 
    Access: Input-only 
    
    Type: Long 
    
    The row number of the cell to set. 
    
    col 
    Access: Input-only 
    
    Type: Long 
    
    The column number of the cell to set. 
    
    edges 
    Access: Input-only 
    
    Type: AcCellEdgeMask enum 
    
    The cell edges. 
    
    acBottomMask 
    acLeftMask 
    acRightMask 
    acTopMask 
    bValue 
    Access: Input-only 
    
    Type: Boolean 
    
    The visibility of the grid for the cell. 
    
    True: Grid is visible for the cell. 
    False: Grid is not visible for the cell.
    AutomateCAD

  3. #3
    Member
    Join Date
    2015-01
    Posts
    47
    Login to Give a bone
    0

    Default Re: Override table cell border property using visual lisp

    That was it! Man, I could have looked for years without figuring that out. Thank you Peter.

  4. #4
    Past Vice President / AUGI Volunteer peter's Avatar
    Join Date
    2000-09
    Location
    Honolulu HI
    Posts
    1,114
    Login to Give a bone
    3

    Default Re: Override table cell border property using visual lisp

    This is a lecture I prepared for Autodesk University.

    There are code examples to manipulate tables.

    P=
    Attached Files Attached Files
    AutomateCAD

Similar Threads

  1. Replies: 4
    Last Post: 2023-11-09, 09:34 PM
  2. Set horizontal cell margins in a specific table cell
    By deheylen690271 in forum AutoLISP
    Replies: 1
    Last Post: 2019-06-17, 09:05 PM
  3. Replies: 0
    Last Post: 2013-10-31, 08:42 PM
  4. Moving from cell to cell
    By Grumpy in forum AutoCAD Tables
    Replies: 6
    Last Post: 2007-11-15, 10:31 PM
  5. Replies: 5
    Last Post: 2006-03-28, 07: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
  •