REPLACE in v6.4 may be broken. v5.12 works similarly so this issue may have
been undetected for a while. Assuming it was ever intended to function as I
read it.
The situation I have is a logo as a package on the BRD and no device on the
SCH
Using a ULP/script I wish to replace the package (logo) with a different
sized one from the same library.
The HELP>REPLACE implies I can REPLACE the package with a differently sized
one in the same library.
quote
"If only a board is being edited (without a schematic), or if elements in
the board are being replaced that have no matching part in the schematic,
the REPLACE command has two different modes that are chosen by the SET
command......... "
end quote
If I close the schematic The following syntax works and the package is
replaced automatically.
REPLACE element_name package_name
If I don't close the schematic I get the error
"Device not found: my-package_name"
It appears that REPLACE with two arguments is interpreted as
REPLACE part_name device_name
As the script or command line is run in the board I expect the syntax to be
interpreted as
REPLACE element_name package_name
If I type in the board editor command line CHANGE PACKAGE (both board and
schematic open) and click the element the error message says
"The element 'my_element' has no corresponding part in the schematic"
"Use the REPLACE command instead"
So again I feel the functionality was intended to be in REPLACE
Ultimately I want to make the changes via a ULP and it would be much better
if I don't have to close and reopen the schematic.
Your input would be appreciated.
Thanks
Warren
--
Created/Viewed/Responded via the newsgroup at
news.cadsoft.de