Create table with two criteria without excel

Create table with two criteria without excel

Anonymous
Not applicable
580 Views
7 Replies
Message 1 of 8

Create table with two criteria without excel

Anonymous
Not applicable

Hi, hoping someone could lend me a hand.

I am trying to have the thickness values below populate into a property based on two selections, the nominal pipe size (1/8"-48") and the schedule (5,5S,10 - XXS). I used the method in this post to create a working table but my problem is the use of the multivalue property which means all options for both criteria are always valid. In my case the 6" pipe is not available in schedules 20,30,60,100 and 140 so when the user selects the 6" pipe I only want the 2nd criteria to show the available schedules.

 

Thank you

table.JPG

0 Likes
581 Views
7 Replies
Replies (7)
Message 2 of 8

chandra.shekar.g
Autodesk Support
Autodesk Support

@Anonymous,

 

I think, use "N/A" value to schedules 20,30,60,100 and 140 for 6" pipe.

 

Can you please provide non confidential source code to investigate?

 

Thanks and regards,


CHANDRA SHEKAR G
Developer Advocate
Autodesk Developer Network



0 Likes
Message 3 of 8

Anonymous
Not applicable

So I did it this way, hopefully there is a cleaner way but all I could come up with;

 

If PIPE_SIZE = "12" Then
PIPE_OD = 12.75 in
MultiValue.SetList("PIPE_SCH", "20", "30", "STD", "40", "XH", "60", "80", "100", "120", "140", "160")
Select Case PIPE_SCH
Case = "20"
PIPE_THK = 0.250 in
Case = "30"
PIPE_THK = 0.330 in
Case = "STD"
PIPE_THK = 0.375 in
Case = "40"
PIPE_THK = 0.406 in
Case = "XH"
PIPE_THK = 0.500 in
Case = "60"
PIPE_THK = 0.562 in
Case = "80"
PIPE_THK = 0.688 in
Case = "100"
PIPE_THK = 0.844 in
Case = "120"
PIPE_THK = 1.000 in
Case = "140"
PIPE_THK = 1.125 in
Case = "160"
PIPE_THK = 1.312 in
Case Else 'Not a valid schedule for the selected pipe size
MessageBox.Show (PIPE_SCH & " IS NOT A VALID SCHEDULE FOR SIZE " & PIPE_SIZE & " PIPE." & vbLf & "PIPE SCHEDULE WILL BE SET TO STD", "ERROR",MessageBoxButtons.OK,MessageBoxIcon.Warning)
PIPE_SCH = "STD"
End Select
Else If PIPE_SIZE = "14" Then
PIPE_OD = 14 in
MultiValue.SetList("PIPE_SCH", "20", "30", "STD", "40", "XH", "60", "80", "100", "120", "140", "160")
Select Case PIPE_SCH
Case = "20"
PIPE_THK = 0.312 in
Case = "30"
PIPE_THK = 0.375 in
Case = "STD"
PIPE_THK = 0.375 in
Case = "40"
PIPE_THK = 0.438 in
Case = "XH"
PIPE_THK = 0.500 in
Case = "60"
PIPE_THK = 0.594 in
Case = "80"
PIPE_THK = 0.750 in
Case = "100"
PIPE_THK = 0.938 in
Case = "120"
PIPE_THK = 1.094 in
Case = "140"
PIPE_THK = 1.250 in
Case = "160"
PIPE_THK = 1.406 in
Case Else 'Not a valid schedule for the selected pipe size
MessageBox.Show (PIPE_SCH & " IS NOT A VALID SCHEDULE FOR SIZE " & PIPE_SIZE & " PIPE." & vbLf & "PIPE SCHEDULE WILL BE SET TO STD", "ERROR",MessageBoxButtons.OK,MessageBoxIcon.Warning)
PIPE_SCH = "STD"
End Select
End If 

 

0 Likes
Message 4 of 8

bradeneuropeArthur
Mentor
Mentor

why not creating a CSV file (Comma Separated Value) and read from that!

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 5 of 8

Anonymous
Not applicable

Can you post an example? Can the CSV be embedded inside the file or do I need an external link?

 

Thank you

0 Likes
Message 6 of 8

bradeneuropeArthur
Mentor
Mentor

Can Both

What you like.

What do you prefer?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes
Message 7 of 8

Anonymous
Not applicable

If you could create a sample file with the table based on my table above that would be great!

0 Likes
Message 8 of 8

bradeneuropeArthur
Mentor
Mentor

Could you share your table file, so I can prepare something?

Regards,

Arthur Knoors

Autodesk Affiliations & Links:
blue LinkedIn LogoSquare Youtube Logo Isolated on White Background


Autodesk Software:Inventor Professional 2025 | Vault Professional 2024 | Autocad Mechanical 2024
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:
Drawing List!|
Toggle Drawing Sheet!|
Workplane Resize!|
Drawing View Locker!|
Multi Sheet to Mono Sheet!|
Drawing Weld Symbols!|
Drawing View Label Align!|
Open From Balloon!|
Model State Lock!
Posts and Ideas:
My Ideas|
Dimension Component!|
Partlist Export!|
Derive I-properties!|
Vault Prompts Via API!|
Vault Handbook/Manual!|
Drawing Toggle Sheets!|
Vault Defer Update!

! For administrative reasons, please mark a "Solution as solved" when the issue is solved !


 


EESignature

0 Likes