
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello,
Could somebody let me know how to obtain the object ID in lisp of an specific line type to then pass it as an argument vla-SetGridLineType?
I need this to format the grid lines on a table.
For instance, If I manually format the table to use the "HIDDEN2" as line type for the outer border and then I execute:
(vla-GetGridLineType TblObj 0 1 acHorzTop)
I get the object ID for the "HIDDEN2" line type used. However I know it is not a simple numeric value but an object ID as mentioned.
If instead I execute:
(setq objLT (vla-GetGridLineType TblObj 0 1 acHorzTop))
Then I can use objLT variable storing the linetype ID to pass to the following lines of code to format subsequent grid lines like this:
(vla-SetGridLineType TblObj 1 1 acHorzBottom objLT) (vla-SetGridLineType TblObj 2 1 acHorzBottom objLT) ; etc, etc, etc.
But without first manually formatting the table with the wanted linetype, I have not been able to get the object ID of the line type I want to use.
What lisp function (or series of functions) can I use to obtain the object ID of an specific line type just by name?
Can somebody shed some light here?
Thank in advance.
Solved! Go to Solution.