Viewports doesnt show texts

Viewports doesnt show texts

Anonymous
Not applicable
816 Views
6 Replies
Message 1 of 7

Viewports doesnt show texts

Anonymous
Not applicable

Hi, i modifyed a code to create layouts and their viewports, everything is ok except that the new viewports doesnt show texts. Polylines are visible as usual and they are in the same layer, so i dont know whats happening here.

BUT... If im in the layout, save changes and exit, when i open dwg again i can see texts in the viewport of that layout (as i wanted), but only in that layout, in the rest of them texts inside vieports keep being invisible.

Help?

 

Tryed to regen the layout, regen the viewport and nothing. Layers are not freezed or anything, nor the drawing or the vp...

0 Likes
817 Views
6 Replies
Replies (6)
Message 2 of 7

Anonymous
Not applicable

Chaged annotative scale of one viewport to 1:1000 and back to 1:500 and fixed it, but in other viewports this is not working. Copyed a non-working viewport to another layout and it showed text. Copyed back to original layout and now both viewports (original and his clone) are normal. Im looking for patience on ebay ¬¬

0 Likes
Message 3 of 7

Anonymous
Not applicable

Well, i find out that the viewport scale was correctly set to 1:500 but its annotation scale was still in 1:1000. I cant find the way to change it from lisp

0 Likes
Message 4 of 7

Ranjit_Singh
Advisor
Advisor

Try this for example

(defun c:somefunc  (/ ent etdata)
  (setq ent (car (entsel "\nSelect Viewport: ")))
  (setq etdata (entget (cdr (assoc 340 (entget (cdr (assoc 360 (entget (cdr (assoc 360 (entget ent)))))))))))
  (entmod (subst '(300 . "1:500") (assoc 300 etdata) etdata))
  (vla-regen (vla-get-activedocument (vlax-get-acad-object)) acallviewports))
0 Likes
Message 5 of 7

Anonymous
Not applicable

I have managed to fix it somehow, dont remember exactly how (im at home now) but tomorrow im gonna try that. Totally forgot about entmod cause I thought viewports cant allow that

0 Likes
Message 6 of 7

Ranjit_Singh
Advisor
Advisor

You are right. However, I am not modifying the viewport. I am modifying annotation scale entity for the viewport.

0 Likes
Message 7 of 7

Anonymous
Not applicable

I have managed to resolve it by using (COMMAND ....)'s... But this make me think, can i edit the dictionary for an annotative text (i think i would be more like adding it) to make it accept more scales? Im tryng to enmake annotative texts.

 

I can give them scales with commands but they are being entmaked inside a block definition, so i would have to close block, edit it and all that stuff. 

0 Likes