I was wondering if anyone can guide me in the right direction.
I'm trying to make it so I can set the bottom SMD pin to TH distance when allegro starts up. This will need to be done to all files being opened.
I'm not familiar with writing skills, but I was wondering if anyone has ran into similar Skill file or at least guide me in the right direction.
I looked through some forum and it looks like I can use axlCmdRegister and axlTriggerSet commands to run the skill automatically once I have the skill file create.
I think this command is where I need to get started from, but I don't think it's that simple.
axlCNSSetSpacing("" TOP 'Thru Pin_SMD Pin .050 INCH)
Any help will be appreciated.
I can't think why you would want to do it this way but, for what it's worth:
The function could be:
defun( my_OpenAllegroTrigger () axlCNSSetSpacing(nil "ETCH/BOTTOM" 'thrupin_smdpin 0.050)); Are your units really inches?
You are correct, this can be called via an axlTriggerSet command: Add a command such as
Where the function is loaded via a load command in your ilinit file.
It looks like it worked exactly the way I wanted to.
I believe we want to do this as request from assembly for TH pin to SMD pin on the bottom side during the assembly process.
I think we are trying to make it so we can set this constraints when people open the file so people will not forget, but I just realized if there is a case if someone need to make this smaller (which I expect will happen pretty often) that it will load it back up to the 50 mils everytime we open the board which seems like it would be a nuisance.
I guess I need to rethink this through.
Thank you for your help. Hopefully I can use this as a base to the new and better solution.
Just for reference, is there a way to make it work for both mils and Inch boards?
defun( my_OpenAllegroTrigger () axlCNSSetSpacing(nil "ETCH/BOTTOM" 'thrupin_smdpin axlMKSConvert(50 "mils") ))
I thought it was working, but now I am getting error below.
E- *Error* eval: not a function - 'open
I have this in env file:
axlTriggerSet ('open 'TH_SMT)
The .il file has the information you gave me. Do you know what could be the issue now?