파이썬 스크립트 조건문 작성

안녕하세요. 시트를 자동 생성하기 위해 Python Script를 작성 중입니다.

sheetName에 특정 "Plan"이란 단어가 들어가면, titleBlockFamilyType을 “A” 타입으로,
sheetName에 특정 "Elevation"이란 단어가 들어가면, titleBlockFamilyType을 "B"타입으로,
나머지는 titleBlockFamilyType을 "C"타입으로 분류하는 조건문을 작성하고 싶은데 어떻게 해야 할까요?

@loopoo_03 ,

Can you write in english please, and share your code via </> #paste here

2 Likes

Thank you for your concern.

Hello, I am writing Python Script to automatically generate sheets.

When the word “PLAN” is in the sheetName, it is the “PLAN” family type.
When the word “ELEVATION” is in the sheetName, it is the “ELEVATION” family type.
I want to write a conditional statement that categorizes the rest into “ALL” family types.

HELP ME…dyn (22.3 KB)