Personal tools
You are here: Home Forum Other... (new forum, problems, etc.) Question about tutorial, EDF exercise 9.

Question about tutorial, EDF exercise 9.

Up to Other... (new forum, problems, etc.)

Question about tutorial, EDF exercise 9.

Posted by kameni sedrick at July 18. 2017

I have started solving tutorial, But I got a problem in EDF exercise 9 when after typing this:

 

p, li { white-space: pre-wrap; }

>>> import salome

>>> salome.salome_init()

>>> Edge_2 = salome.myStudy.FindObjectByPath("/Geometry/Sketch_1/Edge_2").GetObject()

 

in the python console. After typing this, I have press ENTER on my keyboard. I got the following error:

p, li { white-space: pre-wr

May someone explain it to me pleased.

Traceback (most recent call last):

File "<input>", line 1, in <module>

AttributeError: 'NoneType' object has no attribute 'GetObject'

 

 

 

 

 

 

 

 

Thanks in advance.

Re: Question about tutorial, EDF exercise 9.

Posted by Saint Michael at July 19. 2017

Hi

The error means that salome.myStudy.FindObjectByPath("/Geometry/Sketch_1/Edge_2") found nothing. Probably the path is incorrect.

St.Michael

Quick reply
URLs will be automatically hyperlinked. Basic HTML tags are OK.
Powered by Ploneboard
History
Activate by kameni sedrick on Jul 18, 2017 05:48 PM
Document Actions