• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Autodesk Inventor Engineer-to-Order

    Reply
    Active Contributor
    tmckeand
    Posts: 37
    Registered: ‎11-23-2011
    Accepted Solution

    IvCustomTable Question

    79 Views, 2 Replies
    09-07-2012 08:48 AM

    I'm inserting a custom table and I'm getting an error about the content list.

    child rule:

     

    Child shopDetails As :IvCustomTable
            placementPoint = Point(0.625,3.5,0)
            title = "SHOP DETAILS"
            columnTitles = {"DWG NO.","DESCRIPTION"}
            numColumns = 2
            numRows = 18
            cellContents = {"1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18"}
        End Child

     

     

    Error:

     

     

    Any Ideas?

    Please use plain text.
    Employee
    Posts: 196
    Registered: ‎08-23-2006

    Re: IvCustomTable Question

    09-07-2012 09:22 AM in reply to: tmckeand

    I think the cellContents has to be a list of lists, like this:

     

    {{"1", "A"}, {"2", "B"}, ... {"18", "Z or whatever"}}

     

    I haven't tried it myself, but that's what I infer from the error message.



    Jon Balgley
    Autodesk Inventor ETO team
    Autodesk, Inc.

    Please use plain text.
    Active Contributor
    tmckeand
    Posts: 37
    Registered: ‎11-23-2011

    Re: IvCustomTable Question

    09-07-2012 11:18 AM in reply to: Jon.Balgley

    That worked. Its a shame that the wiki doesn't reflect this.

     

     

    Thanks

    Please use plain text.