Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AssemblyArtist.draw_interfaces error : 'module' object has no attribute 'draw_faces'. #1

Closed
yck011522 opened this issue Jul 17, 2019 · 4 comments

Comments

@yck011522
Copy link

Describe the bug
In class compas_assembly.rhino.AssemblyArtist
The method AssemblyArtist.draw_interfaces is not working.

It throws an error 'module' object has no attribute 'draw_faces'.
On line 189, in draw_interfaces, "C:\Users\leungp\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_assembly\rhino\artists.py"

I think the line
compas_rhino.draw_faces(faces, layer=layer, clear=False, redraw=False)
is not working.

To Reproduce
Steps to reproduce the behavior:

  1. Code written in Rhino Python Script editor
  2. Sample script:
from compas_assembly.rhino import AssemblyArtist
from compas_assembly.datastructures import Assembly


#Load Assembly Interfaces

assembly = Assembly.from_json('assembly_with_interfaces.json')

from compas_assembly.rhino import AssemblyArtist

artist = AssemblyArtist(assembly,layer='Assembly')

artist.clear_blocks()

artist.draw_blocks(show_faces=False, show_edges=True)

artist.draw_interfaces()
  1. Sample data
    https://we.tl/t-ocHpWKS0nP
    (Can send you the data file if necessary)

  2. See error

Message: 'module' object has no attribute 'draw_faces'

Traceback:
line 189, in draw_interfaces, "C:\Users\leungp\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_assembly\rhino\artists.py"
line 17, in , "G:\01_Projekte\270_PhD_SpatialTimberStructures\03_Design\20190716 YiJiang Integration\03VisualizeInterface.py"

Expected behavior
Expect it to work. See mesh faces drawn on screen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • Windows 10 64 bit
  • Python 3.6.5 |Anaconda custom (64-bit)|
  • Conda virtual environment

Additional context
The sample data is created by xFunc call:
assembly_interfaces_xfunc = XFunc('compas_assembly.datastructures.assembly_interfaces_xfunc', python='C:\ProgramData\Anaconda3\python.exe')

@tomvanmele
Copy link
Contributor

version of COMPAS and of compas_assembly?

@yck011522
Copy link
Author

yck011522 commented Jul 17, 2019 via email

@tomvanmele
Copy link
Contributor

let me know if this is still an issue in 0.2.1...

@yck011522
Copy link
Author

Hi Tom, Thanks for the speedy update. Now it all works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants