Jump to content
Developer Wiki and Function Reference Links ×

error message


hong

Recommended Posts

I was using a custom made PIO on my drawing and got a error message in certain drawings. It goes

'An attempt define a Plug-In object named 'xx' failed because format with that name already exists in the current document. The entire operation is canceled.'

When I use the same PIO in a new drawing and copy and paste, it works. I was wondering why this message?

Link to comment

Yes, Record Format.

I guess the term Format Node is more low-level. When the user defines a Record Format there are two nodes created in the drawing list: a format node that contains field names and types, and a record node that contains default values for those fields.

Anyway, do you see a Record Format on the Data pane with a name that conflicts with the object you are trying to create?

Link to comment

When you place a plug-in object in a drawing, VectorWorks attempts to create a format node with same name as the plug-in object. This format is used to store the object parameters. If there is already a format node in the drawing with the same name then you will see that error message.

Click on the Object Info palette "Data" tab and look to see if there is already a regular format (i.e. not a plug-in object format) with that name.

The fix would be to rename or delete the existing format before creating the plug-in object.

Jeff

Link to comment
  • 1 year later...

I have had some luck running a script containing only:

DelName('Plugin-Name');

Your PIO should now insert without the error message, as this will get rid of the name collision that's triggering the problem.

I don't know what this does long-term as far as leaving cruft in the file, as in theory there is now a (hidden) PIO record format with no name in the file. But, also in theory, it should purge once nothing's referring to it.

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...