[Gate-users] Fwd: problem in macro file

Samuel BURG samuel_burg at yahoo.fr
Tue Oct 16 15:50:45 CEST 2007


Dear Hadi Taleshi Ahangari, 

try this :

bad code:
  
  /gate/my_phantom/attachPhantomSD
  # PHANTOM
  /gate/world/daughters/name my_phantom
  /gate/world/daughters/insert cylinder
  /gate/my_phantom/setMaterial Water
  /gate/my_phantom/vis/setColor grey
  /gate/my_phantom/geometry/setRmax 10. mm
  /gate/my_phantom/geometry/setHeight 30. mm
  
 good code:

# PHANTOM
/gate/world/daughters/name my_phantom
/gate/world/daughters/insert cylinder
/gate/my_phantom/setMaterial Water
/gate/my_phantom/vis/setColor grey
/gate/my_phantom/geometry/setRmax 10. mm
/gate/my_phantom/geometry/setHeight 30. mm
/gate/my_phantom/attachPhantomSD
 
explanation :

you MUST define your "my_pahntom" BEFORE to "attachPhantomSD"

directory "/gate/my_phantom/" doesn't exist before you call "/gate/world/daughters/name my_phantom"
 
Best regards,

Samuel

hadi taleshi <hadi.taleshi at gmail.com> a écrit : Dear sir
 my problem in any macro file like this.
  
 Thank you

 
 On 10/16/07, Samuel BURG <samuel_burg at yahoo.fr> wrote: Can you post you *.mac file ?

Regards,

Samuel

Simon Stute < gate.stute at gmail.com> a écrit :  

---------- Forwarded message ----------
From: hadi taleshi  <hadi.taleshi at gmail.com>
Date: 15 oct. 2007 17:36 
Subject: Fwd: problem in macro file
To: Simon Stute < gate.stute at gmail.com>

 
Dear sir
 Inside the Gate environment, i can deffining a phantom geometry using following command line
  
 /gate/my_phantom/attachPhantomSD
  
 But in the macro file the Gate has errore and after this command , write that '''command not found''' 
 what sould i do??
thank you
 -- 
Hadi Taleshi Ahangari
MSc. Tarbiat modarres University 


-- 
Hadi Taleshi Ahangari
MSc. Tarbiat modarres University _______________________________________________ 
Gate-users mailing list
Gate-users at lists.healthgrid.org
 http://lists.healthgrid.org/mailman/listinfo/gate-users

  

---------------------------------
 Stockage illimité de vos mails avec Yahoo! Mail. Changez aujourd'hui de mail !   





-- 
Hadi Taleshi Ahangari
MSc. Tarbiat modarres University  

       
---------------------------------
 Ne gardez plus qu'une seule adresse mail ! Copiez vos mails vers Yahoo! Mail 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opengatecollaboration.org/mailman/private/gate-users/attachments/20071016/38b2aeb3/attachment.htm>


More information about the Gate-users mailing list