I want to change a textblock number(not textblock params) by using skill languages.
For example,the number of textblock changes from "1" to "2". How can i do?
Hi KenjiThe only way to do this is to delete then re-add the text.Here are some clues:txtOrient = make_axlTextOrientation(?textBlock "2", ?rotation txtObjId ->rotation ?mirrored txtObjId ->isMirrored, ?justify txtObjId ->justify)axlDBCreateText(txtObjId ->text, txtObjId -> xy, txtOrient, txtObjId ->layer, txtObjId ->parent)axlDeleteObject(txtObjId)Let me know if you need more help. Cheers, Dave
Thnaks,Dave.I will try by the method.If it doesn't go well, it questions again.
Hi Dave,I am using the "set_refdes.il" for geting the refdes location orientation and transfer it from one board to another. But i need to get the refdes text block information also and transfer it to another board. Can you please help me.Regards,Rajesh.
Attached are two routines that I use to record and restore text blocks.
Thanks for your replay, can i please know the step by step procedure to extract and transfer the text block by using this il file.
Hi Rajesh,1/ Open the first board2/ Load the Skill code - load("forum_TextBlocks.il"3/ txtBlks = AFn_recordDesignTextBlocks()4/ Open the second design5/ AFn_restoreTextBlocks(txtBlks)Note that you will need to run the Skill commands from the Skill console (Type "set telskill" in your command window)Cheers, Dave
Hi Dave,Thanks for your reply. But the script changes the text block settings where we do it allegro window (setup --> text sizes and provide the text block width,height etc..).What exactly i need is similar to "set_refdes.il" this will extract the refdes silkscreen_top and silkscreen_bottom location,orientation,mirrored,etc in a text file and it will be transferred to another board.Like that i need to extract the text block defined for each and every component (if the text block size defined for all the components are not unique throughout the board) and transfer to anoter board.Thanks,Rajesh
Rajesh,A modified version of ser_refdes.il is available on SourceLink and it does handle textblocks.