Quantcast
Channel: Jason Andrews Blog
Viewing all articles
Browse latest Browse all 33813

Allegro SKILL: Get selected item on canvas dbid

$
0
0
Hi In Allegro I want to get selected item that user select before running script and then get its xy position. I don't want to use axlSelect cause it need user to select part again. I see in this thread , registering the command as "general" do the tricks but after try it in Allegro 17.2 HF045, its not working for me Am I doing something wrong? Tested Scenario 1. Load following code defun( testPick (), printf("COUNT=%d",axlGetSelSetCount())) axlCmdRegister("tpk" 'testPick ?cmdType "general") 2. Select symbol 3. run tpk in command mode 4. command print COUNT=0 :((( Please Help!!!!! I'm working almost a week to create my script and now I stuck in this stupid step! Thanks

Viewing all articles
Browse latest Browse all 33813

Trending Articles