Can't close array bug

Can't close array bug

xiaohanzhang
Enthusiast Enthusiast
6,524 Views
9 Replies
Message 1 of 10

Can't close array bug

xiaohanzhang
Enthusiast
Enthusiast

Had a bug similar to block editor not closing, but this time it's in array editing mode; ironically this is a recovered file. Checked with audit and had no error reported. The file is stuck in array editing mode it seems.

 

AutoCAD 2017.1

6,525 Views
9 Replies
Replies (9)
Message 2 of 10

swieciakpawel
Advocate
Advocate

Hello,

 

That is interesting, as i don't have any problems with Your array. I can freely enter edit mode, close it, and use other commands afterwards.

 

Isn't the ARRAYCLOSE command working in Your case?

 

 

Perhaps You have an issue with the Associativity, so You might try creating new Array with this function disabled:

obraz.png

 

 

 

If problem is different, please provide some details. A screencast or a detailed description of what exactly happens, how exactly You edit array and how AutoCAD behaves.

 

 

Kind Regards,
Pawel

 

 

 

Message 3 of 10

Vinayv4v
Advisor
Advisor

Hi,

 

Can you Explain the problem in detail. Because array editing mode working fine with me.

Array.JPGArray3.JPGArray4.JPG

 

Thanks & Best regards

 

Vinay

Cheers,

Vinay Vijayakumaran

0 Likes
Message 4 of 10

imadHabash
Mentor
Mentor

Hi,

 

Q: does this happened if you active this command in a new empty CAD drawing?

if the answer is NO...then i suggest to take your 3D model to a new CAD drawing either by Ctrl+c OR wblock and check it there.

 

 

regards,

Imad Habash

EESignature

0 Likes
Message 5 of 10

john.vellek
Alumni
Alumni

Hi @xiaohanzhang,

 

I suggest that you apply the most recent update to your AutoCAD from your account page.

 

At any rate, I looked at your file and, as others found too, did not have any problem with the array.  I would take the contents of your file and move it to new file to see if that remedies the behavior you are seeing.

 

Please select the Accept as Solution button if my post solves your issue or answers your question.


John Vellek


Join the Autodesk Customer Council - Interact with developers, provide feedback on current and future software releases, and beta test the latest software!

Autodesk Knowledge Network | Autodesk Account | Product Feedback
0 Likes
Message 6 of 10

xiaohanzhang
Enthusiast
Enthusiast

Sorry I haven't checked back here in a while. Thanks anyway, though I don't really need this file now as I didn't lose that much progress; I'm just filing it here as what appears to be a bug that I never experienced before. 

 

@imadHabash That seems to be only way out of this. As far as I can tell the commands themselves has no problem elsewhere, but it's just this file that's gone bad, even though Audit reported no error. 

 

@swieciakpawel apparently it won't allow that arrayclose command as it seems to forgot that an array has been checked out as arrayclose is offered on the ribbon. 

 

@Vinayv4v why does it seems like the array you had in the pictures were done within the array editing mode that the file is stuck in?

 

@john.vellek the only update I'm seeing in the account pages are the Service Pack 1 from 2016, though I'm using version 2017.1.1 -- doesn't the 1.1 update supersede the service pack 1?

 

I've posted a picture of what I am seeing after downloading the file then running an Audit and then the Arrayclose command.

Message 7 of 10

Anonymous
Not applicable

I hit this same bug. I feel like it happened when I was editing my arrays. Then I realized I did one wrong so used undo a few times and somehow I got stuck in arrayedit. If I type arrayclose it says "command not allowed unless an associative array is checked out in source editing state." 

 

The file behaves like it should but visually it appears like it is in the arrayedit command. I tried opening it on another computer and it still looks that way. I tried purge, audit, recovery and still nothing. I tried several tricks I have for cleaning files and none of it worked. It will let me edit other arrays without a problem. So far other than be visually annoying its not giving me any problems. 

0 Likes
Message 8 of 10

xiaohanzhang
Enthusiast
Enthusiast

Okay I was doing a list of system variables for myself when I came up with some interesting facts and what I say may be a partial solution--partial as I don't know if the file had gotten some other problems/corruption that is not showing at the moment. I am going to offer some steps/explanation of what I did; if you want to try them out, you probably want to use a test file and perhaps back up all your customization/sysvar/settings in case these steps mess up your acad.

 

So I was probably editing the source of an array when AutoCAD crashed as the recovered file imply, as during the array source editing all other objects are "faded" and the ribbon has the arrayclose options. What this suggest is that interestingly the variable ARRAYEDITSTATE is actually "saved" with the drawing. You can check this by Edit Source for an array and use the setvar command/lisp which return the value On or 1, but return Off or 0 if you're out of the array editing; and interestingly it's possible to "save" the variable in the drawing by using setvar thru a Lisp Expression (setvar "arrayeditstate" 1) and then a save (you don't even have to have any array selected or in the file!), then compare the variable value for this test file and a new file. Note that you can't set the variable with the regular setvar COMMAND as the variable returns "Read-only", nor can you "save" the variable to the drawing while you are for real in Edit Source (by selecting an array and go edit its source) as AutoCAD prevent those actions and you do actually have a checked out array--it seems to only work with that setvar LISP. Now when I did that house I had no knowledge of LISP so it must have happened automatically and done by AutoCAD somehow, as when I recovered the file the array is probably no longer checked out, hence the arrayclose command won't function and is probably why an audit didn't fix anything, but the variable and the "visual style" didn't get "restored" accordingly. Also it's interesting that this variable can be set like this while some other Read-Only variable will actually return an error saying whatever value you want to set is not possible, and there are other such lisp-modifiable variable (ARRAYCREATION is another one I found that "save" to a drawing) while other similar variable like HATCHCREATION is not saved in a drawing but stick around even after closing the file and fix itself with a program restart or a lisp setvar.

 

So if you had tried the above and saved ARRAYEDITSTATE like my file seems to have done, just turn the state off with (setvar "arrayeditstate" 0) or create a new array and edit its source; the arrayclose command and its ribbon equivalent (save/discard changes) won't work as no array is actually checked out. And during the ARRAYEDITSTATE the visual style is modified but that may get stuck like mine, which seems to be a "old bug" related to Edit Xref In-place as suggested by this post: https://forums.autodesk.com/t5/autocad-forum/conceptual-visual-style-faded/td-p/7275097   so just reset the visual style in the visual style manager pane. If you try to do another array edit source it might not fade, and that might be fixed with just a restart of acad at least for me--maybe it's a graphic card issue...don't know. Still, I think it would be prudent to copy the objects to a new file if you can as you don't know if something got "corrupted" during all of the above; as I mentioned before I wasn't too far in my file so I just redrew the things instead of copying the objects--not quite sure if some of my objects was corrupted as well.

0 Likes
Message 9 of 10

B-city
Explorer
Explorer

THANK YOU. I felt like I was stuck in the matrix.

0 Likes
Message 10 of 10

ssaussy
Explorer
Explorer

Replying to this thread in 2025, but I opened Block Editor on another block and then closed it out and my problem was solved.