I have a problem with the simulation of a custom component not recognize on simulation. I entered the spice data in "Properties - Edit All Properties As Text" with the following content:
When the simulation is started returns the error "Device Type '2SA2126' Not Recognized!" . Apparently Spice data should be formatted correctly as other components created in the same way work properly.The same parameters used in another simulator they work correctly.
Such a script works just fine to me and I don't get any error.
I think is the way you have made the device part and how did you link the script to. Post your Proteus .pdsprj file here so we can get a look.
sorry for late i think I've solved by modifying the properties from {PRIMITIVE=ANALOGUE} to {PRIMITIVE=ANALOGUE,NPN} and {PRIMITIVE=ANALOGUE,PNP} respectively. Using only PNP/NPN without ANALOGUE does not work. So if I'm right must be used both.
Nope, mine's working just fine even with PRIMITIVE=ANALOGUE only. In such the script case PNP or NPN suffixes in the property get only descriptive purposes. Once again I can't tell what is wrong if you don't post your project file.