Community
Inventor Forum
Welcome to Autodesk’s Inventor Forums. Share your knowledge, ask questions, and explore popular Inventor topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Inventor sketch block will not delete

24 REPLIES 24
SOLVED
Reply
Message 1 of 25
william
3485 Views, 24 Replies

Inventor sketch block will not delete

william
Advocate
Advocate

Hello 

I have a part file that keeps giving errors on new features, basic extrudes, etc. After digging into it, it appears to be a single sketch block & associated parameters that are the problem. 

 

I have tried every way i can think of to delete the parameters and the sketch block, it it refuses to be deleted. 

 

I have stripped the part right back to only containing the sketch block, no other parameters, sketches, or features and it still will not delete. 

 

I really dont want to create a new part and spend 3-4hrs rebuilding the part from scratch because of 1 sketch block. 

 

Can anyone figure this out? 

0 Likes

Inventor sketch block will not delete

Hello 

I have a part file that keeps giving errors on new features, basic extrudes, etc. After digging into it, it appears to be a single sketch block & associated parameters that are the problem. 

 

I have tried every way i can think of to delete the parameters and the sketch block, it it refuses to be deleted. 

 

I have stripped the part right back to only containing the sketch block, no other parameters, sketches, or features and it still will not delete. 

 

I really dont want to create a new part and spend 3-4hrs rebuilding the part from scratch because of 1 sketch block. 

 

Can anyone figure this out? 

Labels (3)
24 REPLIES 24
Message 2 of 25
johnsonshiue
in reply to: william

johnsonshiue
Community Manager
Community Manager
Accepted solution

Hi William,

 

This looks like the file is corrupted. There are still 2D sketches left in the file, even after they were all deleted. I suggest you ditch the file. Simply copy the block and paste it to a new file.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer

Hi William,

 

This looks like the file is corrupted. There are still 2D sketches left in the file, even after they were all deleted. I suggest you ditch the file. Simply copy the block and paste it to a new file.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 3 of 25
chris_graham
in reply to: johnsonshiue

chris_graham
Participant
Participant

@johnsonshiue, I just want to let you know that this does not seem to be an isolated file corruption issue. I have the exact same problem as @william (sketch blocks that cannot be deleted and ghost sketches that remain in the file after being deleted). This appears to be a bug related to the use of sketch blocks. If I copy one of the blocks from the original file to a new empty file, the ghost sketches appear in the new file, and the block that I just added cannot be deleted.


If you're able to investigate this bug, that would be extremely helpful; in this case, I have a very large multibody part that will take me days to rebuild, and I have no reason to believe the problem won't happen again if I continue to use blocks.

0 Likes

@johnsonshiue, I just want to let you know that this does not seem to be an isolated file corruption issue. I have the exact same problem as @william (sketch blocks that cannot be deleted and ghost sketches that remain in the file after being deleted). This appears to be a bug related to the use of sketch blocks. If I copy one of the blocks from the original file to a new empty file, the ghost sketches appear in the new file, and the block that I just added cannot be deleted.


If you're able to investigate this bug, that would be extremely helpful; in this case, I have a very large multibody part that will take me days to rebuild, and I have no reason to believe the problem won't happen again if I continue to use blocks.

Message 4 of 25
johnsonshiue
in reply to: william

johnsonshiue
Community Manager
Community Manager

Hi Christopher,

 

Absolutely, this is a bug. Any unusual or unreasonable behavior is a bug. But, what can be done with the bug depends on the severity and if the reproducible steps exist. Were you able to reproduce the behavior?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Hi Christopher,

 

Absolutely, this is a bug. Any unusual or unreasonable behavior is a bug. But, what can be done with the bug depends on the severity and if the reproducible steps exist. Were you able to reproduce the behavior?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 5 of 25
chris_graham
in reply to: johnsonshiue

chris_graham
Participant
Participant

If it would help, I can post the affected file. I don't think it will be possible for me to replicate the exact steps that caused the problem. A new file with new blocks works fine; the problem didn't occur until I had been working with the file for weeks, and there's no way for me to know exactly when it started. However, the problem is reproduced in an empty part file if you copy one of the "undeletable" blocks into the file, which presumably means that the problem is related to the data of that particular block object. Hopefully you can learn something about the cause (or at least the mechanism) of the problem by looking at the data for the blocks in the part file?

 

As far as severity of the problem is concerned, I can't speak for other customers, but it's very severe for me. I use sketch blocks extensively for top-down design, and it's a big problem if a file that represents weeks or months of work can be corrupted for no apparent reason, forcing me to remodel it from scratch.

0 Likes

If it would help, I can post the affected file. I don't think it will be possible for me to replicate the exact steps that caused the problem. A new file with new blocks works fine; the problem didn't occur until I had been working with the file for weeks, and there's no way for me to know exactly when it started. However, the problem is reproduced in an empty part file if you copy one of the "undeletable" blocks into the file, which presumably means that the problem is related to the data of that particular block object. Hopefully you can learn something about the cause (or at least the mechanism) of the problem by looking at the data for the blocks in the part file?

 

As far as severity of the problem is concerned, I can't speak for other customers, but it's very severe for me. I use sketch blocks extensively for top-down design, and it's a big problem if a file that represents weeks or months of work can be corrupted for no apparent reason, forcing me to remodel it from scratch.

Message 6 of 25
johnsonshiue
in reply to: william

johnsonshiue
Community Manager
Community Manager

Hi Chris,

 

Yes, please share the file here or with me directly johnson.shiue@autodesk.com. I would like to understand the issue better.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Hi Chris,

 

Yes, please share the file here or with me directly johnson.shiue@autodesk.com. I would like to understand the issue better.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 7 of 25
Anonymous
in reply to: johnsonshiue

Anonymous
Not applicable

Have a similar problem, have many files that contain that block,

just deleted all items in the file and still can't delete 

Please suggest the solution 

File attached

 

will send the file also to the e-mail you provided

 

Thx, Roman

0 Likes

Have a similar problem, have many files that contain that block,

just deleted all items in the file and still can't delete 

Please suggest the solution 

File attached

 

will send the file also to the e-mail you provided

 

Thx, Roman

Message 8 of 25
johnsonshiue
in reply to: Anonymous

johnsonshiue
Community Manager
Community Manager

Hi Roman,

 

I suspect this is a corruption case. There was another customer reporting the same thing. He mentioned that he used multi-solid body workflows extensively. So far we are not yet able to reproduce the corruption besides the already corrupted cases.

Do you know how to reproduce it? Do you mind elaborating the typical workflow you do? At what point you found out the block cannot be deleted?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Hi Roman,

 

I suspect this is a corruption case. There was another customer reporting the same thing. He mentioned that he used multi-solid body workflows extensively. So far we are not yet able to reproduce the corruption besides the already corrupted cases.

Do you know how to reproduce it? Do you mind elaborating the typical workflow you do? At what point you found out the block cannot be deleted?

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 9 of 25

bradeneuropeArthur
Mentor
Mentor
Accepted solution

This will solve it for the moment:

This is a i-logic code

Dim a As PartDocument = ThisDoc.Document

MsgBox(a.ComponentDefinition.Sketches.Count)

a.ComponentDefinition.Sketches.Item(1).Delete

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

This will solve it for the moment:

This is a i-logic code

Dim a As PartDocument = ThisDoc.Document

MsgBox(a.ComponentDefinition.Sketches.Count)

a.ComponentDefinition.Sketches.Item(1).Delete

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 10 of 25
johnsonshiue
in reply to: william

johnsonshiue
Community Manager
Community Manager

Hi Arthur,

 

Many thanks for sharing the rule! I will mark it as a solution for now. However, it does not solve the underlying corruption. If you know how to reproduce it from scratch, please let me know asap. I would like to understand the workflow leading to this corruption case.

Thanks again!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Hi Arthur,

 

Many thanks for sharing the rule! I will mark it as a solution for now. However, it does not solve the underlying corruption. If you know how to reproduce it from scratch, please let me know asap. I would like to understand the workflow leading to this corruption case.

Thanks again!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 11 of 25

bradeneuropeArthur
Mentor
Mentor

@johnsonshiue 

Strange is that if you copy the block it is also not possible to delete it!

 

bradeneuropeArthur_0-1628533663431.png

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

0 Likes

@johnsonshiue 

Strange is that if you copy the block it is also not possible to delete it!

 

bradeneuropeArthur_0-1628533663431.png

 

Regards,

Arthur Knoors

Autodesk Affiliations:

Autodesk Software:Inventor Professional 2024 | Vault Professional 2022 | Autocad Mechanical 2022
Programming Skills:Vba | Vb.net (Add ins Vault / Inventor, Applications) | I-logic
Programming Examples:Drawing List!|Toggle Drawing Sheet!|Workplane Resize!|Drawing View Locker!|Multi Sheet to Mono Sheet!|Drawing Weld Symbols!|Drawing View Label Align!|Open From Balloon!|Model State Lock!
Posts and Ideas:Dimension Component!|Partlist Export!|Derive I-properties!|Vault Prompts Via API!|Vault Handbook/Manual!|Drawing Toggle Sheets!|Vault Defer Update!


! For administrative reasons, please mark a "Solution as solved" when the issue is solved !

Message 12 of 25

johnsonshiue
Community Manager
Community Manager

Hi Arthur,

 

The Sketch Block folder contains the Sketch Block definitions. If there are instances of the Sketch Block in any sketch, the definition cannot be deleted. Is this what you are talking about? If not, please share an example here. I would like to take a closer look.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Hi Arthur,

 

The Sketch Block folder contains the Sketch Block definitions. If there are instances of the Sketch Block in any sketch, the definition cannot be deleted. Is this what you are talking about? If not, please share an example here. I would like to take a closer look.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 13 of 25
Anonymous
in reply to: bradeneuropeArthur

Anonymous
Not applicable

Dear @bradeneuropeArthur, you fixed it removing a sketch that had no name, maybe it can help also here.
This the link to other thread on same topic that you solved.
https://forums.autodesk.com/t5/inventor-forum/can-t-delete-block/td-p/10525832

@william @chris_graham @Anonymous take a look!

Dear @bradeneuropeArthur, you fixed it removing a sketch that had no name, maybe it can help also here.
This the link to other thread on same topic that you solved.
https://forums.autodesk.com/t5/inventor-forum/can-t-delete-block/td-p/10525832

@william @chris_graham @Anonymous take a look!

Message 14 of 25

kimK7B54
Advocate
Advocate

bradeneuropeArthur wrote:

This will solve it for the moment:

This is a i-logic code

 

Dim a As PartDocument = ThisDoc.Document

MsgBox(a.ComponentDefinition.Sketches.Count)

a.ComponentDefinition.Sketches.Item(1).Delete

 

 


This may be a solution, to the 2% that know how to use i-Logic.  I sure wish I was part of that 2%.  Could you give instruction on how to enter this and run it (for the other 98% of us?)

Many thanks.

 

0 Likes


bradeneuropeArthur wrote:

This will solve it for the moment:

This is a i-logic code

 

Dim a As PartDocument = ThisDoc.Document

MsgBox(a.ComponentDefinition.Sketches.Count)

a.ComponentDefinition.Sketches.Item(1).Delete

 

 


This may be a solution, to the 2% that know how to use i-Logic.  I sure wish I was part of that 2%.  Could you give instruction on how to enter this and run it (for the other 98% of us?)

Many thanks.

 

Message 15 of 25
johnsonshiue
in reply to: kimK7B54

johnsonshiue
Community Manager
Community Manager

Hi Kim,

 

This is pretty straight forward. Just go to the browser and enable iLogic browser -> right-click on it -> New Rule. Or, go to Manage -> iLogic -> Add Rule. After that, just copy and paste the rule here. Run the rule.

BTW, iLogic isn't just for the 2%. It is quite popular right now. It may seem overwhelming at the beginning but you will find it very easy to use. Certainly, if you want to do advanced level automation, it will require good programming skills and good understanding of Inventor API.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer

Hi Kim,

 

This is pretty straight forward. Just go to the browser and enable iLogic browser -> right-click on it -> New Rule. Or, go to Manage -> iLogic -> Add Rule. After that, just copy and paste the rule here. Run the rule.

BTW, iLogic isn't just for the 2%. It is quite popular right now. It may seem overwhelming at the beginning but you will find it very easy to use. Certainly, if you want to do advanced level automation, it will require good programming skills and good understanding of Inventor API.

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 16 of 25
kimK7B54
in reply to: johnsonshiue

kimK7B54
Advocate
Advocate

@johnsonshiue wrote:

Hi Kim,

 

This is pretty straight forward. Just go to the browser and enable iLogic browser -> right-click on it -> New Rule. Or, go to Manage -> iLogic -> Add Rule. After that, just copy and paste the rule here. Run the rule.

BTW, iLogic isn't just for the 2%. It is quite popular right now. It may seem overwhelming at the beginning but you will find it very easy to use. Certainly, if you want to do advanced level automation, it will require good programming skills and good understanding of Inventor API.

Many thanks!


Thank you;  This is more than I knew.  I hear it's popular, but still very few people know how to use it. (I've worked with about 40 inventor users, none of them knew how to use it, so 0:40 tells me less than 2% can; this is how I come up with my estimate)

Could you point me to a rescource to learn basic iLogic programming?  I've looked without success.

0 Likes


@johnsonshiue wrote:

Hi Kim,

 

This is pretty straight forward. Just go to the browser and enable iLogic browser -> right-click on it -> New Rule. Or, go to Manage -> iLogic -> Add Rule. After that, just copy and paste the rule here. Run the rule.

BTW, iLogic isn't just for the 2%. It is quite popular right now. It may seem overwhelming at the beginning but you will find it very easy to use. Certainly, if you want to do advanced level automation, it will require good programming skills and good understanding of Inventor API.

Many thanks!


Thank you;  This is more than I knew.  I hear it's popular, but still very few people know how to use it. (I've worked with about 40 inventor users, none of them knew how to use it, so 0:40 tells me less than 2% can; this is how I come up with my estimate)

Could you point me to a rescource to learn basic iLogic programming?  I've looked without success.

Message 17 of 25
johnsonshiue
in reply to: kimK7B54

johnsonshiue
Community Manager
Community Manager

Hi! I thought my instruction was pretty clear. Anyway, here is a basic iLogic tutorial. I am not an iLogic expert either. But, I learn by using it. Please take a look. Please also help inform the 40 Inventor users about the tutorial. Hopefully, it will help them start using iLogic quickly.

 

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Inve...

 

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer

Hi! I thought my instruction was pretty clear. Anyway, here is a basic iLogic tutorial. I am not an iLogic expert either. But, I learn by using it. Please take a look. Please also help inform the 40 Inventor users about the tutorial. Hopefully, it will help them start using iLogic quickly.

 

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Inve...

 

Many thanks!



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 18 of 25
kimK7B54
in reply to: johnsonshiue

kimK7B54
Advocate
Advocate

@johnsonshiue wrote:

Hi! I thought my instruction was pretty clear. Anyway, here is a basic iLogic tutorial. I am not an iLogic expert either. But, I learn by using it. Please take a look. Please also help inform the 40 Inventor users about the tutorial. Hopefully, it will help them start using iLogic quickly.

 

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Inve...

 

Many thanks!


Your instruction was precise and it worked as far as I can tell; Thank you.  I asked for tutorial because I would like to learn how to create my own iLogic routine (I have a specific need); I do have a fear that it'll have a limitation that'll prevent it from doing what I want (after spending time learning it).  I need a program that'll automatically pull parameters from an iFeature in the .idw environment (I use iFeatures a lot).  I would like to do it within the leader command or something similar.  The current process is very tedious when I have to detail 50+ iFeatures (3+ parameters each).

Back on topic:  I ran the iLogic routine and it allowed me to delete many unwanted parameters.  There are still unconsumed parameters inventor will not purge.  Another iLogic routine perhaps?parameters.png

0 Likes


@johnsonshiue wrote:

Hi! I thought my instruction was pretty clear. Anyway, here is a basic iLogic tutorial. I am not an iLogic expert either. But, I learn by using it. Please take a look. Please also help inform the 40 Inventor users about the tutorial. Hopefully, it will help them start using iLogic quickly.

 

https://knowledge.autodesk.com/support/inventor/learn-explore/caas/CloudHelp/cloudhelp/2015/ENU/Inve...

 

Many thanks!


Your instruction was precise and it worked as far as I can tell; Thank you.  I asked for tutorial because I would like to learn how to create my own iLogic routine (I have a specific need); I do have a fear that it'll have a limitation that'll prevent it from doing what I want (after spending time learning it).  I need a program that'll automatically pull parameters from an iFeature in the .idw environment (I use iFeatures a lot).  I would like to do it within the leader command or something similar.  The current process is very tedious when I have to detail 50+ iFeatures (3+ parameters each).

Back on topic:  I ran the iLogic routine and it allowed me to delete many unwanted parameters.  There are still unconsumed parameters inventor will not purge.  Another iLogic routine perhaps?parameters.png

Message 19 of 25
johnsonshiue
in reply to: william

johnsonshiue
Community Manager
Community Manager

Hi! If you want to retrieve iFeature dimensions in the drawing, you may simply enable "Retrieve Model Dimensions on view placement" option in Tools -> App Options -> Drawing. There is no need to create an iLogic rule for that. Is that what you were looking for?

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
0 Likes

Hi! If you want to retrieve iFeature dimensions in the drawing, you may simply enable "Retrieve Model Dimensions on view placement" option in Tools -> App Options -> Drawing. There is no need to create an iLogic rule for that. Is that what you were looking for?

Many thanks!

 



Johnson Shiue (johnson.shiue@autodesk.com)
Software Test Engineer
Message 20 of 25
kimK7B54
in reply to: johnsonshiue

kimK7B54
Advocate
Advocate

That does not work.

This is the only dimension it brings in, and it is not a needed dimension.

import model parameters.png

I need to be able to "auto-populate" some these variables.  This would
change a 2 hour job into a 5 minute job.

parameters needed.png

Currently I have to manually find these ( in a list of up to 50
iFeatures, locate the correct one, and insert the value )

I have to go to the model to identify which iFeature I am detailing,
then back to the idw;  Very, very time consuming.

0 Likes

That does not work.

This is the only dimension it brings in, and it is not a needed dimension.

import model parameters.png

I need to be able to "auto-populate" some these variables.  This would
change a 2 hour job into a 5 minute job.

parameters needed.png

Currently I have to manually find these ( in a list of up to 50
iFeatures, locate the correct one, and insert the value )

I have to go to the model to identify which iFeature I am detailing,
then back to the idw;  Very, very time consuming.

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report